
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Nick Walter introduces Python for programmers with an exercise-based format, featuring browser-based coding challenges, beginner-friendly guidance, and hands-on projects like a grade calculator, hangman, and a word counter.
Discover the differences between Python 2 and 3. Learn why moving to Python 3 matters after 2020 and how to install and test Python while you learn.
Set up python 3 on mac, pick an editor such as Adam, and write and run your first python program using the terminal to print hello world.
Begin with Python numbers as a foundation, showcasing how numbers are straightforward in Python and enable quick number crunching, with a brief introduction to variables.
Learn how to use variables and integers in Python by creating an age variable, assigning values, printing results, and updating it to see how values change.
Learn how floats represent numbers with a decimal point in Python, using pi as 3.14, and distinguish them from integers by showing a decimal value and printing it.
Discover how to perform math with Python, including computing a circle's area using pi and radius, practicing variables, multiplication, division, and order of operations (PEMDAS) in the Python interpreter.
Explore math in Python by using exponent with two asterisks, calculate circle area with pi r squared, practice division, floor division //, modulus %, rounding, and recall result with underscore.
Learn to convert between float and int in Python with int() and float(), shown on a circle area example and using age += 1, plus rounding with round.
Conclude by celebrating your finish, gain momentum with Python, and explore the interpreter as a nerdy calculator for quick number work, preparing you for strings.
Explore Python strings for programmers, uncovering cool string behaviors and how multiline comments use strings. Build momentum as you move beyond the numbers part and keep cruising into strings.
Master Python strings by using single or double quotes, printing text, and understanding the difference between string values and numbers, with Unicode and emoji support across languages like Japanese.
Learn how to use Python comments, including single line comments with the hash symbol and multi-line comments with triple quotes, which are actually strings.
Learn Python string concatenation by adding strings with the plus operator and repeating them with multiplication. Use curly brace formatting to insert variables like age and pi.
Explores essential string methods in Python for programmers, including upper, lower, len, replace, and split, with practical interpreter demos.
Master Python string handling by exploring length with len, zero-based indexing, and slicing, including negative indices to extract subparts like hello, world, or last characters.
Solidify the foundations of numbers and strings and prepare for the upcoming if statements that bring Python programs to life, including string multiplication, concatenation, and triple quotes.
Explore Python's if statements syntax, including the else if (elif) case, and highlight features you might not see in other languages. Expect a concise, practical look to reinforce understanding.
Learn how to write Python if statements using booleans, true/false, and comparisons; apply indentation rules for blocks, and use elif and else to handle multiple conditions with simple print examples.
Explore Python conditionals by showing if statements and comparisons, including greater than, less than, greater than or equal to, less than or equal to, equal to, not equal to, and between five and seven.
Use and and or to compose complex conditions in Python if statements, including checking even numbers with modulus and ranges like between 5 and 7.
Finish the if statement section and numbers and strings, gain a feel for the Python language, and transition to a project that reinforces learning and showcases Python concepts.
Build a Python program that converts a test score into a letter grade, using points possible and a student name, and run it yourself before the walkthrough.
Walk through how to compute a student's percentage, apply if/elif statements to assign A–F grades, and print the student name with their final grade.
Explore how to make Python programs interactive by reading user input, transforming terminal-only code into dynamic applications, and applying this approach to our last project.
Learn the basics of user input in Python by prompting for name and score, storing responses in variables, and printing results; inputs are strings and may require conversion.
Convert user input, which arrives as strings, to int, float, or boolean using built-in casting, and verify types with simple checks.
Learn to wrap input handling in a try/except block to validate numbers, prevent crashes, and print a helpful message like 'please provide a valid number' while exploring multiple exception types.
Explore how user input makes Python code come alive and lets you build programs for friends or customers. Prepare to explore functions and their importance in the next section.
Explore the fundamentals of functions in Python, building a solid base and then diving into advanced concepts to enable you to do cool things with your code.
Learn how to define and call functions in Python using def, pass parameters, print statements, and docstrings with triple quotes, while ensuring definitions occur before use.
Learn how to define and use parameters in Python with a simple add function, pass two numbers, and handle type issues and input validation.
Explore advanced parameter techniques in Python by building a Madlib-like function with named and default parameters, and see how *args collects extra values into a tuple.
Explore how Python functions return values and optional type hints, with an example that adds two numbers, assigns the result to a variable, and prints the outcome.
Master functions to organize your code, a fundamental step, and unlock the next steps in Python for programmers. Move forward with the upcoming project and stay excited about what's next.
Explore lists, tuples, and sets in Python, understand how these data structures compare to arrays and how to use them effectively in programming.
Learn the basics of lists in Python, including creating lists with square brackets, zero base index, and accessing items with negative indices and mixed types.
Explore advanced list operations in Python for programmers, including append, insert, update by index, delete with del or remove, and len with negative indexing, and then tuples and sets.
Explore tuples in Python as immutable lists created with parentheses. Learn that tuples cannot be updated or appended, while still supporting indexing and length.
Explore Python sets, which store unique values and lack guaranteed order, unlike lists. Create with set([...]), then add elements with add, and remove or discard items safely, with no indexing.
Review the differences between lists, tuples, and sets in Python, and clarify common mix-ups with arrays, while previewing looping and the upcoming project.
Explore loops in Python by learning for loops and while loops, and see how loops let your code run tasks automatically before the next project.
Master for loops in Python by iterating with range and over lists. See how zero-based indexing works and how to loop through items like games in a list.
Explore how while loops in Python run code while a condition stays true, including incrementing a variable, avoiding infinite loops, and using user input to guess a number until correct.
Explore break, continue, and else in loops using for and while loops, with practical examples of early exit, skipping iterations, and post-loop execution.
Master advanced while loop concepts to make your code run repeatedly. Leverage your Python progress to tackle the next project and dive into exciting, cooler projects.
Recreate hangman in Python by building a word-guessing game with lives, a letter list from the word, lowercase handling, and functions that manage guesses.
Walkthrough shows building a hangman-style game in Python, using a while loop to track lives and guesses, print a live scoreboard, and handle correct and incorrect letters with functions.
Walkthrough 2 advances the hangman game by showing lives, incorrect letters, and the guess state; it adds a lowercase letter input and updates the guess array to reveal correct letters.
Develop a Python hangman game by tracking correct and incorrect guesses, updating lives, recording incorrect letters, and implementing a winner check to determine game outcome.
Explore building a Python hangman game by checking for a win with 'underscore not in guess', managing lives, and enhancing user experience with spacing and sleep timing.
Python for Programmers is the course to help you get up to speed on Python quickly. If you've always wanted to check out Python this is your chance.
This course uses in-browser programming exercises to make sure you are learning as you progress through the course. After each lecture, you are presented with an exercised designed to help test your knowledge.
This course can be completed in a weekend if pursued aggressively or could be a two week course if one section is completed every day.
Don't waste time trying to figure out confusing documentation, take python for programmers and start learning now.