
Learn Python programming basics for beginners using a compiler to cover variables, data types, logic, loops, functions, recursion, and basics of object oriented programming, with Google and Stack Overflow tips.
Explore what programming is, how programmers translate human language into computer language, and how Python can implement tasks like summing a list of numbers, alongside other languages.
Begin exploring python by using an online compiler to run code and view console output. Learn about .py files like main.py and how the console displays results.
Learn to write your first Python program using the print function to output hello world in the console, with either single or double quotes.
Explore how Python variables store information and reference values with simple assignment like my_variable = 1, then update it to 2 to reflect changes, without keywords or explicit types.
Explore booleans in Python by declaring True and False values, understanding how booleans store truth values, and printing them to show their behavior.
define integers and floats by naming variables and performing addition, then observe Python class int for whole numbers and class float for decimals.
Learn how strings work in Python by defining string variables with quotes, printing them, and concatenating strings with the plus operator to form phrases like hello world.
Explore tuples as an ordered collection of multiple values stored in one variable, defined with parentheses, accessed by zero-based indexing, and printed or added by position.
Learn how to create and manipulate Python lists, append values, use zero-based indexing and negative indexing for last items, and slice lists to extract sublists.
Explore dictionaries, a Python data type of key-value pairs implemented as a hash map. Create a dict with curly braces, access values by keys, mix types, and print retrieved values.
Explore the logic and loop section by iterating through a list to print numbers divisible by three using modulo checks and conditional printing.
Master Python conditional logic with if, elif, and else by writing properly indented blocks, comparing values with == and !=, and executing code like print statements.
Demonstrate fizz buzz through if statements, using the mod operator to test divisibility by 3 or 5 and print fizz, buzz, or fizz buzz.
Explain how while loops execute code while a condition holds, using a counter starting at 1 to print numbers 1 through 100 and increment each time, then introduce for loops.
Learn how to use for loops to process every item in a list and print them, then leverage enumerate to get index and value starting at 0 as you iterate.
Learn how to define and reuse functions with def, pass arguments, and return values to compute the average of a list.
Explore function terminology in Python, using the def keyword, the function name, and arguments, to call a function, execute it, return a value, and assign it to a variable.
Explore how the return keyword makes a function yield a value, stopping execution, and how 3 and 4 can return 7 when combined and printed.
Learn how to convert the fizz buzz logic into a reusable Python function, return values, and call it multiple times to keep code organized and avoid repetition.
Explore recursion by showing how a function calls itself to count down from 10 to 0, replacing loops with a recursive call that returns count of number minus one.
Explore the fibonacci sequence and its recursive Python implementation, defining f(0)=0 and f(1)=1, and returning f(n-1)+f(n-2). Print the first 100 terms and discuss recursion and big-O complexity.
Learn object oriented programming in Python by creating objects to store structured data, such as a cat with name and age, and calling methods like meow.
Define and instantiate objects in Python using the class keyword, assign attributes like first name, last name, position, team, and jersey number, and access them with dot notation.
Define a football player class with an __init__ method to initialize attributes using self. Create Jared Goff for Los Angeles Rams, assigning first name, last name, position, and jersey number.
Learn to build a complex number object in Python, initialize it with an init method, overload the addition operator, and return a complex number by combining real and imaginary parts.
If you have always wanted to learn how to program, then this class is perfect for you.
This is a crash course in learning Python - a widely used programming language in fields such as web development, data science, artificial intelligence and more! This course will go into the basics of Python Programming, and then go through specific examples of how to implement Python code.
We will create an algorithm to find the factorial of a number, as well as learn how to represent people in a programming language.