
Learn to code in Python online with Google Colab, sign in with your Gmail, and use this open source coding environment to run code and complete coding exercises.
Explore numeric data types in Python, including integers and floats, learn variable declaration and assignment, and use comments and print statements to display and annotate outputs.
Explore how strings are sequences of characters enclosed in quotes and how to initialize them with a variable. Print demonstrates that the content inside quotes, including spaces, appears as defined.
Perform type checking in Python by inspecting data types such as integers and floats using the type function and the print statement.
Demonstrate type conversion in Python by using int and float to convert values, print results, and remove decimal parts when converting floats to integers.
Master the modulus operator by computing remainders, with examples like 10 mod 3 equals 1 and 20 mod 10 equals 0, and distinguish it from division.
Demonstrates floor division in Python with the // operator to round down to the nearest integer, as in 10 // 3 = 3 and 23 // 3 = 7.
Learn how to read user input in Python using the input function, convert strings to integers or floats with int() and float(), and print the results.
Explore boolean data types in Python, using true and false with case sensitivity. See variables like isSunny and isRaining and printing results to illustrate control flow and logical decisions.
Learn how to declare and initialize boolean variables in Python, assign true or false, and print results to the terminal.
Explore boolean expressions in Python, evaluating true or false with equal, not equal, lower than or equal to, larger than or equal to, and the logical operators and, or, not.
Practice coding exercise 7: compare numbers by declaring num1 and num2 as 10 and 5, then print whether first is greater, showing true for 10 > 5 and false 1.
Learn to use and and or to combine two boolean values and print results, illustrated by isWeekend true and hasHomework false.
Explore truthy and falsy values in Python, where non-boolean values act as booleans. See how non-zero numbers and non-empty strings are true, while zero, none, or empty strings are false.
Explore Python strings, compare single and double quotes for defining literals, and learn to include quotes inside strings using alternating quotes or escape sequences.
Use the len() function to determine the number of characters in a string, including spaces. Print the result with print() to verify examples like 'hello' (5) and 'Reza Shahin' (11).
Master string indexing in Python by using zero-based positions to access the first character and negative indexing to reach the last character, with practical examples.
Learn how to repeat a string in Python using the star operator (multiplication), assign a word to a variable, and print the repeated string with spaces to create clear output.
Learn Python string slicing, including the start inclusive end exclusive rules, with practical examples extracting substrings from 'hello world' and demonstrating step slicing like [::2] and [::-1].
Practice combining two strings in Python with the plus operator to form a full name by inserting a space between first and last names, then print the result.
Demonstrate checking substrings in a string with Python's in and not in keywords, using examples like Python in text and Java not in text, with true or false outputs.
Prompt users for their first and last name using input, form a full name, convert it to uppercase, and print the length without spaces.
Convert string case in Python using the upper and lower methods. See how a sample string becomes uppercase with text.upper() and lowercase with text.lower() through practical examples.
Master how to use Python's replace function to substitute characters in a string, turning hello into jello.
Prompt the user to enter a string and a starting character, store them as text and start, and check with the starts with function if string begins with the character.
Explore ASCII, the numerical representation of characters, and learn to obtain character codes using Python's ord function with practical input examples.
Learn to identify the smallest and largest characters in a string using Python, via min, max, and ASCII codes (ORD), with a sample input.
Learn to use Python's isLower() and isUpper() to check if all characters in an input string are lowercase or uppercase. Use practical examples showing true or false results.
Learn how to check if a string is numeric in Python using the isdigit function, with input handling and examples showing true for 12345 and false for RZA.
Practice using python's endswith function to check if a string ends with a given character by inputting a text and an ending character and evaluating text.endswith(end).
Learn to find the index of a character in a string with Python's find and index functions, by entering a string and a character and printing the zero-based result.
Learn to count character occurrences in a string using Python's count function. Prompt users for a string and a character, then display the number of occurrences.
Learn to convert the first letter of a string to uppercase using Python's capitalize function, by prompting user input and applying capitalize to the text variable.
Learn to capitalize the first letter of every word in a sentence using Python's title function by taking user input, storing it in a text variable, and printing the result.
Use the lower function to convert a user-entered string to lowercase by storing it in a text variable and applying text.lower(), demonstrating the resulting lowercase output.
Learn to convert a user-entered string to uppercase in Python using the upper function, assigning the text to a variable and printing the result.
Learn how to replace a substring in Python using the replace function, prompting user input and printing the updated string, illustrated by changing Reza to John in 'Reza Shahin'.
Learn how to split a sentence into words using Python's split function by prompting user input, storing it in a text variable, and printing the resulting words.
Explore Python conditional statements by writing and evaluating if conditions that print messages when numbers meet criteria, using colon syntax and indentation to control blocks.
Learn to implement if-else in Python to check if age is greater than or equal to 18 and print eligibility to vote; use else for the alternative message.
Demonstrates Python's if, elif, and else statements by grading student marks with conditional thresholds and a final else for out-of-range scores, showcasing validation and code flow.
Explore nested if conditions by checking whether a number is greater than 10, then determine if it is odd or even inside the first if condition.
Read user input for temperature in Celsius, convert it to int, and display a message based on thresholds: hot day, nice day, or cold day.
Learn to use if statements with and and or operators to compare temperature and humidity, including nested and single-line formats that yield hot and humid, or weather is comfortable.
Build a Python voting eligibility check by reading the user age, converting it to int, and using an if-else to print eligible or not eligible for ages 18 and up.
Learn to implement a conditional statement that checks if a number is between 10 and 20 inclusive or equal to 25, using and and or operators.
write a program that compares two numbers using comparison operators, printing whether x is less than, equal to, or greater than y, and explain the if-else flow.
Write a loop that prompts the user to enter a password until the input matches the correct password, displaying 'wrong password try again' until success and 'access granted' on success.
Check divisibility in Python using an if statement and modulo operator. Read two numbers, test if the remainder is zero, and print whether num one is divisible by num two.
Calculate the diagonal of a rectangle in Python by importing the math library, reading width and height from input, converting to float, and computing sqrt(width^2 + height^2).
Learn to truncate a floating point number to its integer part in Python using the math library and math.trunc, converting input to float, and printing the result.
Compute the number of full tiles needed by dividing the floor area by tile size and applying the math.floor function for the final result.
Use Python and the math.ceil function from the math library to calculate the total pages needed for a given total lines and lines per page, rounding up.
Compute the number of possible arrangements of n objects using Python's math.factorial function. The video shows 2, 3, and 4 objects with results 2, 6, and 24 as examples.
Write a Python program to compute years to double an investment using the logarithm formula time = log(2)/log(1+rate). Read rate as a decimal and print the result.
Learn to write a Python program that asks for a numerator and a denominator, uses the math.fmode function to compute the remainder, and prints the result.
Learn to use Python for loops to iterate numbers with the range function. The start is inclusive and the end exclusive, printing 1 through 5 with i.
Learn how nested loops work by using an outer loop and an inner loop to iterate over ranges, print i and j, and apply to multi‑dimensional data such as matrices.
Learn how while loops in Python repeat while a condition is true, printing numbers 1 through 5 and updating i with i += 1 to avoid infinite loops.
Understand how the break statement exits a loop when a condition is met, illustrated by a for loop from 1 to 10 and stopping at i == 5.
Learn how the continue statement skips the current loop iteration and moves on to the next. A Python example shows it printing 1, 3, and 5 by skipping even numbers.
Develop a Python program that prompts for three item prices, uses a for loop to accumulate the total cost by adding each price.
Count down from five to one using a while loop in Python, printing each value and decrementing by one until zero, then display blast-off.
Iterate over a string with a for loop to print each letter. Use the in keyword to iterate letters and print the whole string in one line with print.
Learn to print a multiplication table for a chosen number by looping i from 1 to 10, displaying number times i, with the number treated as a fixed value.
Demonstrates summing numbers from 1 to 10 using a for loop, updating total with total plus equal i, and printing the final sum of 55.
Define and call functions in Python using def, name, parentheses, and arguments, distinguishing built-in and user-defined functions. Learn how functions reduce repetition and improve code readability.
Explore parameters and arguments in Python functions by defining a greet function with a name parameter, calling it with Alice and Bob, and understanding errors from missing arguments.
Demonstrate variable scope by explaining local variables declared inside a function are accessible only within it. The greet example prints a local message and shows outside access causes errors.
Learn how global variables are declared outside functions and accessible from any function, illustrated by declaring a hello world message and printing it from inside and outside a function.
Explore how local variables shadow global ones in Python, and learn to use the global keyword to modify a global number from inside a function.
Define a function check_even_odd to determine if a given number is even or odd using modulo two, printing 'even' or 'odd', with examples like 10 and 7 to show efficiency.
Define a Python function find_max with three arguments to return the largest of the numbers using the built-in max function, then print the result for inputs 10, 20, and 15.
Learn to use functions with default values in Python by defining default parameters, so calls with or without arguments print greetings like hello name or hello friend.
Explore how Python functions can return multiple values using def and a function like getSumAndProduct, returning sum and product, then unpacking them into two variables and printing results.
Use return statements to retrieve values from functions, and store them in variables. See how an add function returns a plus b and enables code reuse.
Create a Python function using def to convert Celsius to Fahrenheit with the formula Celsius * 9/5 + 32, returning and printing the result for sample temps.
Learn to declare a Python function with def and two parameters, print or return their sum, and call it with examples like 3 and 7, 10 and 20.
Learn how to modify a global variable inside a function using the global keyword in Python, demonstrated with a count example that prints updated values.
Learn how a Python function returns three values (sum, difference, product) and assigns them to three variables from a single call, illustrated with 7 and 3.
Learn how lists in Python are ordered and changeable collections created with square brackets, containing items of different types, accessed by zero-based indices.
Learn how to measure a list's length in Python using the len() function, by printing the number of items in a fruits list of three elements.
Explore python list membership tests using in and not in, and verify presence and absence with a fruits list including apple, banana and cherry.
Modify lists in python by zero-based index; learn they are mutable, replace the second item banana with orange and the third cherry with pineapple, then print the list.
Show how to find the position of items in a Python list with the index method, using fruits like apple, banana, and cherry to get 0, 1, and 2.
Use the count() function to determine how many times an item appears in a list, counting apple, banana, and cherry in a fruits list, and print the results.
Copy a list using the copy() function to create an independent duplicate, demonstrated by copying the fruits list into a new list and into x, then printing to verify.
Learn how to modify a Python list using append, extend, and insert to add one item, multiple items, or insert at a specific index.
Learn how to find the third largest number by converting a list to a set to remove duplicates, sorting the unique numbers, and indexing with minus three.
Learn to find the pair with the maximum product in a list by selecting the two largest numbers, using a set to remove duplicates and sorting in Python.
Learn to append two lists in Python using the plus operator; combine list one and list two, then the append list function returns list one plus list two.
Build a Python shopping list by creating an empty list, appending items like apple, bread, and milk, and printing each item on a new line using a for loop.
Create a numbers list with 10, 20, 30; compute its sum with the sum function, assign it to total, and print the total (showing 60 for this example).
Learn how to sort a Python list using list.sort() in ascending and descending order, using reverse=True, with a fruits list example including banana, cherry, and apple.
Learn to reverse a Python list by using the original list and a reversed version created with colon colon minus 1, then print both the original and reversed lists.
Learn to create a five-element list of numbers, use the max function to find the largest number, and print a descriptive message showing the result.
Learn to perform list operations by using the plus operator to join two lists, creating all items and printing the combined fruits (apple, banana) and vegetables (carrot, spinach).
Iterate over a list with for loops and print each item from the fruits list containing apple, banana, and cherry.
Explore Python tuples as immutable containers using parentheses, offering faster performance and smaller memory usage than lists. Contrast tuples with lists to see mutable versus fixed data in Python.
Learn to create empty, single element, and mixed tuples in Python, and print them using the print function to display their contents.
Learn how to use tuple count and index to find the number of occurrences and the first occurrence of a value, with a zero-based index shown in a sample tuple.
Master membership testing in Python tuples using in and not in, and verify with print that apple is in the fruits tuple and grape is not.
Iterate over a Python tuple with a for loop, printing each element such as Python, Java, C++, and JavaScript.
Demonstrate packing and unpacking of tuples in Python by grouping three values into a tuple and assigning them to variables X, Y, and Z, then printing the unpacked results.
Unpack tuples in Python by assigning each element to name, age, and profession, then printing values like Alice, 25, engineer.
Learn to compute element-wise sum of two tuples in Python by using zip to iterate concurrently, summing elements with a for loop, and returning a tuple.
Master python tuple operations by concatenating two tuples to form a merged tuple and repeating a tuple to create a repeated sequence, then print the results.
Learn to access elements of a Python tuple and perform slicing using zero-based indexing, including negative indices like -1 and -2, with examples of start and end in slices.
Create a tuple of favorite colors and print the first and last elements using zero-based and negative indexing. Demonstrate indexing from left and right to access colors.
Create a five-element tuple and count its items with the len function, printing the result, then show how adding or removing elements updates the length in the initialization line.
Convert the cities tuple to a list, append a new city, then convert back to a tuple and print the updated tuple in python.
Practice checking user input against a six-element numbers tuple (10, 20, 30, 40, 50, 60) by converting input to an int and printing whether it is in the tuple.
Explore how Python sets store unique elements and are mutable, with elements that must be immutable. Learn valid elements like tuples, and declaring sets with curly braces or set().
Create and print sets in Python using the set function, including an empty set, a numbers set, and a mixed data set with int, float, and string elements.
Demonstrate how to check whether a value is in a set using the isValueInSet function, with examples showing true for 3 and 5 and false for 7.
Use Python's built-in max and min to find maximum and minimum values in a set. The example returns two values and assigns them to two variables before printing the results.
Combine two sets with the pipe operator or the union function to create a new set that preserves unique elements, as duplicates are removed.
Learn how to compute the intersection of two Python sets using the and operator or the intersection method, returning the shared elements 2 and 3.
Find common elements between two lists by converting them to sets and using the and operator in Python. Print the shared items, such as 3 and 4.
Learn how to compute set difference in Python by subtracting sets or using the difference method to find elements in set 1 not in set 2 and print them.
Learn how to obtain unique values from a list by converting it to a set, which removes duplicates, and optionally convert the set back to a list for the output.
Compute the symmetric difference of two sets, yielding elements in either set but not in both, as shown with {1,2,3} and {3,4,5}, using Python's symmetric_difference.
Learn to find the second smallest number in a list by removing duplicates with a set, sorting the unique numbers, and selecting the second element.
Explore membership testing in Python sets using in and not in, verify if elements exist, and understand true/false outcomes with practical examples.
Iterate through a Python set with a for loop, using a loop variable to access elements like apple, banana, and cherry, and print them individually or print the whole set.
Explore subset and superset concepts with two sets, showing that set two is a subset of set one and set one is a superset, using Python with <=.
Explore Python set comprehension by building a set in one line with an expression and optional conditions. Create a set of squares from 1 to 5 using range and x**2.
Explore set comprehension in Python by building a set of even numbers from 1 to 10 using range and modulo; print the resulting evens 2, 4, 6, 8, 10.
Learn set comprehension by extracting vowels from a string. Iterate over T and add letters that match vowels A, E, I, O, U; the result shows E and A.
Learn set comprehension in python by building a vowels set from hello world, iterating each character and selecting those in a e i o u, yielding e and o.
Learn how to create a frozen set in Python with the frozen set function to prevent modification, initialize with 1, 2, 3, 4, and raise an error when adding 5.
Chaining set methods in Python demonstrates how to find elements in set1 that are not in set2 or set3 using set1.difference(set2).difference(set3), returning the unique values 1 and 2.
Learn to extract unique words from a sentence by converting a split string into a set, which removes duplicates and prints the resulting unique words in Python.
Convert two lists to sets and use the and operator to find their common elements. The example lists 1, 2, 3 and 2, 3, 4 yield 2 and 3.
Generate six unique lottery numbers in Python using a set, the random library, and a while loop that adds numbers from 1 to 49 until the set size is six.
Learn how to check if one list is a subset of another in Python by converting to sets and using the is subset function, and verify a superset.
Explore Python dictionaries, a mutable collection of unique key-value pairs you can add, remove, or modify; access values by keys and print dictionaries, as shown with name, age, and city.
Compare lists, tuples, sets, and dictionaries in Python, highlighting mutability, duplicates, and key rules as you learn how to add, remove, or update elements.
Learn to add and update key-value pairs in Python dictionaries, using square brackets to add new keys and modify existing ones, then print the updated dictionary.
Remove items from a dictionary with the del keyword, as shown by deleting the city key from the person dictionary and printing the updated result.
Learn to iterate through a Python dictionary with a for loop, using key and value variables and items(), printing each key with its value like name-Alice, age-25, city, New York.
Create and print a dictionary containing a person's name, age, and city, then iterate with a for loop using items() to print each key and value.
Add a new key-value pair to an existing student dictionary and print the updated dictionary, using keys name, grade, and the new subject with value math, demonstrating dictionary modification.
Remove a key-value pair from a Python dictionary using the del keyword, demonstrated on a car dictionary with brand, model, and year. See the updated dictionary without the removed key.
Check if a key exists in a Python dictionary using an if condition, using a colors dictionary to print whether blue or yellow is in the dictionary.
Learn how to count dictionary items in Python using the len function. Build a fruits dictionary with three keys and print the result to verify the count.
Learn to merge Python dictionaries by updating one with another and by creating a merged dictionary using dictionary unpacking, illustrating key overwrites when shared keys exist.
Learn how to loop through keys, values, and items in a dictionary using for loops and print each key, value, or pair.
Master nested dictionaries in Python by creating dictionaries within dictionaries and accessing their inner values, such as ages and grades for Alice and Bob, using bracket notation.
Sum all dictionary values using the values function and the sum function in Python. Print the total, demonstrated with a dictionary of A:10, B:20, C:30, producing 60.
Learn to multiply all values in a dictionary using a for loop and the values() function, initializing the result to 1 to produce 24.
Learn formatted printing in Python using f-strings to create clean, readable output. See how to embed variables inside curly braces for concise string construction with the print function.
Learn how to format strings with the format() function by inserting variables into curly braces to print messages like 'my name is Bob, and I am 30 years old'.
Learn how to use Python's format function with positional arguments and curly brace placeholders. Replace the first and second curly braces with 5 and 3 to build a dynamic message.
Learn to use named arguments in string formatting by passing name and messages, demonstrating arguments via curly braces and the format function, and printing personalized output.
Master Python text formatting by learning padding and alignment with format specifiers, enabling right, left, and center alignment within a specified width using print and curly brace syntax.
Master Python number formatting using f-strings to print a value with limited decimals, as shown by displaying 3.14159 as 3.14 and illustrating how to set more decimals.
Discover how to add commas to large numbers by using a colon and comma after a variable in string braces, improving readability when printing values.
Welcome to the Python Bootcamp, a comprehensive hands-on course designed to help you master Python programming from the ground up. Whether you are a complete beginner or someone looking to refine your coding skills, this course is structured to provide a step-by-step learning experience covering fundamental concepts to advanced programming techniques.
Why Take This Course?
Python is one of the most popular programming languages in the world, known for its simplicity, readability, and versatility. It is widely used in web development, data science, artificial intelligence, automation, and software engineering. This course will not only teach you Python syntax and core programming concepts but also help you develop the problem-solving skills necessary to write efficient and scalable code.
Who Should Take This Course?
Absolute beginners who want to learn programming from scratch.
Students and professionals looking to build a strong foundation in Python.
Software engineers, data analysts, and AI enthusiasts who want to expand their skill set.
Anyone interested in automation, web development, or scripting using Python.
What You Will Learn
1. Python Basics
Understanding Python syntax and execution flow.
Variables, data types, and operators.
String manipulation and formatting.
2. Control Flow: Loops and Conditional Statements
Implementing if-else conditions for decision-making.
Using for and while loops for repetition.
Understanding nested loops and logical operators.
3. Functions and Modular Programming
Defining and calling functions in Python.
Function parameters, return values, and scope.
The importance of code reusability and modular programming.
4. Math Modules and Built-in Functions
Performing mathematical operations using the math module.
Exploring built-in functions for calculations and data manipulation.
5. Data Collections: Sets, Tuples, Lists, and Dictionaries
Understanding lists and their operations (sorting, indexing, slicing).
Using tuples for immutable collections.
Leveraging sets for unique elements and mathematical operations.
Working with dictionaries for key-value data storage.
6. Object-Oriented Programming (OOP)
Understanding classes and objects in Python.
Implementing encapsulation, inheritance, and polymorphism.
Creating real-world applications using OOP concepts.
7. Python Data Structure Modules and Packages
Importing and using built-in Python modules such as namedtuple, chainmap, counter, ordereddictionaries, heapq, and deque,.
Creating and organizing your own modules.
Understanding the Python package management system.
8. Python NumPy library
Array Creation & Manipulation: Creating arrays, reshaping, slicing, indexing, and broadcasting.
Mathematical & Statistical Functions: Element-wise operations, linear algebra, and aggregation functions.
Random Number Generation: Generating random samples, distributions, and setting seeds.
9. Python Matplotlib
Plotting Basics: Creating line plots, scatter plots, bar charts, histograms, and pie charts.
Customization & Styling: Setting titles, labels, legends, colors, markers, and line styles.
Subplots & Layouts: Creating multiple plots in one figure, adjusting layout, and using gridspec.
Axes & Annotations: Controlling axis limits, ticks, scales (log, linear), and adding annotations.
3D & Advanced Plots: Generating 3D plots, contour plots, heatmaps, and interactive visualizations.
10. Python Pandas
Data Structures: Understanding Series and DataFrame, creating and manipulating them.
Data Cleaning & Preprocessing: Handling missing values, duplicates, filtering, and transforming data.
Indexing & Selection: Using loc, iloc, boolean indexing, and multi-indexing.
Aggregation & Grouping: Performing group operations with groupby(), pivot tables, and agg() functions.
What Makes This Course Unique?
* Comprehensive Curriculum – Covers everything from basic syntax to advanced OOP and data structures.
* Hands-on Learning – Practice coding with real-world exercises and projects.
* Step-by-Step Approach – Each topic builds on the previous one for easy learning.
* No Prior Experience Required – Designed for absolute beginners.
* Practical Applications – Learn how to write clean, efficient, and reusable Python code.
By the end of this course, you will have the skills and confidence to build Python applications, automate tasks, and explore more advanced areas like data science, AI, or web development.
* Join this bootcamp and start your Python programming journey today!