
Learn Python 3 basics through 20 hours of on-demand video, with code resources, Jupiter notebooks, practice questions, and an online book hosted on GitHub, plus seven-chapter Python fundamentals.
Install Python 3 on a Mac by checking your current Python version in the terminal, downloading the Mac OS installer from Python.org, and verifying the installation with Python 3.
Learn to install Jupiter notebook for Python in this course, guiding you through checking Python 3 version, using pip3 to install notebook, and launching jupyter notebook in your browser.
Install Python 3.6.5 on Windows by choosing the 64-bit or 32-bit executable installer, add Python to path, and verify via the command prompt that you are using Python 3.
Install Jupyter notebook on Windows using pip after confirming Python 3 installation and version 3.6.5, then launch it from the command prompt to open in your browser.
verify your python 3 and jupyter notebook setup on macOS or Windows, opening the browser and creating a new python 3 notebook to ensure everything works.
Bookmark the book and code resources sites, download and unzip the project, move it to your home directory, create the my_notebooks folder, and open Jupiter notebook from there.
Bookmark the book site and the resource download site. Download, extract, and move the course folder to a chosen location, then use the command prompt to start the notebook.
Explore how to set up and use Jupiter notebook across Mac and Windows, run and manage cells, save work, and navigate notebooks and folders for Python projects.
You will learn about the Python print function and how to print things to the screen.
You will learn about string objects in Python and how to create them, print them, and concatenate them.
Variables are important in programming and in this video I give you an introduction to how
variables work in the Python programming language.
You will learn about the most common numerical data types in Python (integers and floats).
In this video you learn how to substitute variables and evaluated expressions into strings using F-strings.
In this video you will learn how to get specific characters from a string using string indexing
and also how to characters from a string over some range of indexes using slicing.
Learn to get input from a user with the input function.
Learn to convert objects from ints to floats and strings and so on.
Set up your my notebooks folder with chapter one practice questions, copy the notebook from the book, and practice Python by editing and executing code in cells.
Practice questions solutions for Python basics, including arithmetic with proper parentheses, printing strings and multi-line strings, and using notebooks, variables, concatenation, and user input.
Practice solving Python exercises by collecting user input, using f-strings to format outputs, and mastering string slicing, indexing, and reversing techniques.
Solve practice questions part 3, analyzing type and value of A, B, C, D, and implementing Python conversions, input handling, and float display of sums.
Explore the boolean data type in Python, where true and false are built-in values used to drive conditional decisions; learn about case sensitivity and how booleans enable if statements.
Learn the equal equal operator in Python, checking whether two objects are equal and returning true or false for booleans, strings, and numbers.
Learn how the not equal operator != compares two Python expressions and returns true when they differ and false when they are the same, with practical examples.
Practice boolean data type and comparison operators in Python 3: is equal, not equal, greater than, less than, greater than or equal, less than or equal; return true or false.
Explore Python's logical operators and, or, not, and learn to evaluate boolean expressions with true and false values using a Jupyter notebook, with examples, parentheses, and chaining.
Learn to use the or operator to combine boolean values, where at least one true yields true, contrasting with and and not operators and common boolean expressions.
Explore the not operator in Python, which flips true and false in boolean expressions, with examples like not true, not false, and not conditions in if statements for control flow.
Practice using comparison and logical operators in Python 3 to evaluate true or false expressions. Write and test your answers in Python code cells.
Learn how Python if statements use boolean expressions and indentation, illustrated by a final grade example that prints pass when the grade is at least 50.
Learn to use Python's if and else statements to control code flow, executing alternative blocks when conditions are true or false, with examples using print statements and indentation.
Master multi-branch logic with if, elif, and else in python, printing messages based on final grade thresholds of 90, 80, 70, and 50, ensuring only the first true branch runs.
Learn how if, elif, and else control flow in Python with practical examples, including comparisons, print statements, and f-strings to determine output.
Practice if elif else in Python with a day-of-week example that assigns colors and lunch reminders for Monday, Wednesday, and Friday, demonstrating syntax and boolean checks.
Learn to use nested if statements in Python by indenting code blocks, and follow examples with x values to see when conditions like x>5 and x>10 print different messages.
Explore the list data type in Python, create lists with mixed objects, and inspect their types and contents. Practice indexing, slicing, and reversing lists, including empty lists and duplicates.
Learn to use Python's length function to measure lists and strings. Append items to lists and understand mutable versus immutable objects.
Explore how lists are mutable in Python, using append, extend, and the plus operator to concatenate and modify lists in place, while understanding references and memory implications.
explore how to use membership operators in and not in with lists and strings in Python, and apply them in conditional statements to check whether an item is present.
Change item values in a predefined list by indexing and reassigning at a specific position, demonstrating in‑place modification, appending elements, and handling a nested list.
Explore Python loops, including for loops and while loops, to iterate over iterables such as lists and strings, and understand syntax, indentation, and real-world examples.
Learn to use a for loop to append items to an empty list when a condition is met, by iterating a numbers list and selecting values greater than six.
Learn to extract unique numbers from a list by looping and appending to an initially empty list when a value is not already present, producing the 11 unique numbers.
Learn to use the range() function to generate number sequences for loops, with default start at zero and end-exclusive behavior, and practice summing 1 to 100 with a running total.
Learn to implement nested for loops in Python to iterate a grid with an outer and inner loop, generating a multiplication table and exploring row and column patterns.
Learn how the break statement in python stops loop execution, with examples using for loops and lists illustrating early termination when a condition is met.
Learn how the continue statement skips the rest of the current loop iteration and proceeds to the next item, using examples with for loops to conditionally bypass code.
Learn how the while loop works in Python 3 as a condition-driven alternative to the for loop, including true/false evaluation, infinite loop risks, and using break or continue.
Learn to use the pass statement as a placeholder to keep indented blocks runnable when code isn’t ready. The video highlights its relation to break and continue and avoids errors.
Master the modulo operator in Python, using % to get the remainder after division, with examples like 4 % 2 = 0 and 9 % 4 = 1, for evens.
Explore Python assignment operators, including plus equals, minus equals, times equals, and divide equals, and learn how these patterns update variables efficiently in loops.
Practice chapter two Python 3 questions, using hints after an initial try, and explore accessing solutions and setting up a Jupiter notebook workflow from GitHub resources.
Learn to determine if a user-entered number is even or odd in Python 3 by using input, convert to int, apply modulo, and print the result.
Demonstrate solving chapter two, practice question two in Python by iterating over lists with a for loop and printing values strictly between five and nine using a single and condition.
Explore chapter 2 practice question 3 by building a new list of numbers greater than five and less than nine from the original list, then print the collected values.
Print the first and last items of a colors list with list indexing, using zero-based indexing and negative indexing to access the elements.
Demonstrate printing numbers 1 to 100 with a for loop and range, and compare appending to a list versus printing in one line, introducing list comprehensions as a future technique.
Explore the fizz buzz problem in Python. Print fizz for multiples of 3, buzz for multiples of 5, and fizz buzz for both, numbers 1 to 100, with proper order.
Learn to compute the intersection of two lists with duplicates removed by building a unique list C, using for each item in A, if in B, and append to C.
Count zeros by iterating through a list of numbers, using a counter initialized to zero, updating it with count = count + 1 or count += 1, then print result.
learn to compute the sum of element-wise products for two equal-length lists by iterating over indices with a for loop, multiplying corresponding elements, and accumulating the total.
Practice question 10 in chapter 2 demonstrates a Python 3 palindrome check by reading user input, reversing the string, and printing whether it is a palindrome.
Generate a random number between one and ten. Use a while loop to keep prompting the user, offering lower or higher hints, until they guess or type stop.
Learn to solve chapter 2 practice question 12 by checking if the input number equals 4, 5, or 6 using the is equal operator and or operators.
Solve a practice question by asking the user for three integers A, B, C and printing the largest using only comparison and if-else logic, without max.
Learn to generate the Fibonacci sequence in Python by starting with 0 and 1, iterating with a for loop, and appending each new number to build the first thousand terms.
Explore how functions work in Python, including built-in functions like print, abs, max, and min, how they take arguments and return values.
Explore Python built in functions round and sum for rounding numbers and summing lists. Understand how to set decimal places and pass arguments, with guidance to Python documentation.
Discover Python built-in functions enumerate and zip to iterate lists, access indices, and pair elements in for loops, with tuples and unpacking demonstrated.
Learn to define your own functions in Python, follow the dry principle to avoid repetition, and refactor code using function calls, arguments, and simple print examples.
Learn to define and use functions without arguments in Python, call them, and test for bugs, including handling division by zero errors.
Define local variables inside a function to keep them in a local scope; avoid using the same name for inside and outside variables to prevent confusion.
Learn how the return statement lets a Python function return a value, such as 1+2 equaling 3, and that only one return executes per call, even with multiple options.
Discover how positional arguments pass inputs to Python functions, replacing fixed values with X and Y, and learn how return statements determine the function's output.
Learn how to call functions with positional and keyword arguments, compare their order, mix them safely, and understand how keyword arguments enable flexible ordering.
Learn how default arguments simplify function calls by providing a default tax rate for the cost before tax, and practice using positional and keyword arguments to compute cost after tax.
Document Python functions with docstrings, using triple-quoted descriptions for parameters and return values. Learn to access this documentation with help and prepare for IDE-based editing.
Learn to write a function that prints a greeting message using two string arguments, name and message, demonstrating positional and keyword arguments, and the role of docstrings.
Define a function that computes the area of a circle by taking the radius as its single argument, returning pi times the radius squared, with pi approximated as 3.14159.
Learn to write a Python function that generates a random list of integers using the random module. Use length, min, and max parameters with for loops, range, and list appends.
Develop Python functions to generate prime numbers, including is_prime, primes up to a limit, and the first N primes, while illustrating divisibility checks and a brute-force approach.
Access chapter three practice questions, download the latest Jupiter notebooks, set up your environment, and start solving the minimum of three numbers problem with available hints.
Define a Python function to find the minimum of three numbers using custom logic or the built-in min, then write a factorial function for non-negative integers.
Create a Python function to locate all indices of the number two in a list, using enumerate, and return an empty list when no two exists.
Learn to implement a Python function that sums a list of floats and rounds the result to two decimals using the built-in sum and round.
Practice Chapter 3 questions 5–7, using positional, keyword, and default arguments with the dustoff function, plus understanding local variables and the get_seconds conversion with defaults.
Learn core Python data structures: lists, tuples, dictionaries, and sets, and essential list methods such as sort, count, pop, and remove, plus dictionaries, iterations, and variadic arguments.
Explore common Python list methods beyond sort, including count, pop, and remove, and understand mutability, indexing, and how these methods modify lists in place.
Discover Python list comprehensions by writing compact one-line expressions that build lists from iterables, with examples using range and for loops.
Explore how to build and filter lists with Python list comprehensions, including conditional logic, enumerate for indices, and using zip to combine lists into country stats.
Explore tuples in Python as immutable data structures, defined with parentheses or a trailing comma for single-element tuples, indexed like lists, and support unpacking, including nested forms.
Explore how Python dictionaries map keys to values using curly braces, colons, and key value pairs, then retrieve, store, and list keys and values with practical examples.
Use the in operator to test dictionary keys and fetch ages when present. Loop over names and print ages for existing keys, noting that in checks keys by default.
Explore multiple ways to create dictionaries in Python. Build them from literals, the dict function with tuples, keyword arguments, dict comprehensions, and incremental adding to an empty dict.
Learn how to loop over dictionaries in Python by iterating keys and values with items, and build a growing dictionary from zipped names and ages.
Learn that dictionary keys must be unique, with lookup, adding and updating keys, and looping via items to access keys and values in Python dictionaries.
Learn how the set data type in Python creates an unordered collection of unique items, removing duplicates from lists and supporting add, remove, and membership checks.
Learn how to handle a variable number of positional arguments using *args, collect them in a tuple, and understand the role of the unpacking operator in Python functions.
Explore variable number of keyword arguments with **kwargs in Python, compare to *args, and learn to access, print, and iterate over kwargs as a dictionary inside a function.
Practice questions for chapter four reinforce Python data structures, including lists, tuples, and dictionaries, with hands-on work in a Jupyter notebook and access to GitHub.
Demonstrate solutions to chapter four practice questions on data structures, including lists, tuples, dictionaries, and sets. Implement get_list_details to print a list, sort in place, and return the sorted list.
Develop a Python function that takes a list of numbers and returns a dictionary counting each number's occurrences, using unique numbers for efficiency.
Learn to implement a Python function that removes the first and last items from a list using pop, returning a tuple of the remaining list and the removed numbers.
Practice list comprehensions in Python to build numeric ranges, filter odd numbers, and use enumerate to pair indices with values and select index multiples of three.
Learn to work with Python tuples by solving exercises: creating multi-type tuples, applying trailing comma rules for single-element tuples, unpacking into variables, concatenating tuples, and checking membership with a function.
Combine three parallel lists into a list of tuples using zip, producing instrument, color, and price. Compare solutions with and without list comprehensions to reveal practical patterns.
Define a function that takes a list of tuples (name, paid amount) and returns a dictionary totaling each person’s payments across all entries, illustrating tuple handling and dictionary aggregation.
practice 8 guides extracting the unique list of player names and team names, finding the highest and lowest points per game, and computing the mean of those points.
Learn to write a Python function that accepts any number of positional arguments and returns a tuple with the smallest, largest, and average from chapter four practice question nine.
Practice the Python function get car details with required positional arguments year and make, plus keyword arguments, returning a car detail dictionary and signaling type errors when args are missing.
Chapter five introduces virtual environments, external packages, and import statements, showing how to install packages and import modules from the Python standard library such as math, time, and random.
Discover how to use pip to install external Python packages from the Python package index and why you should work inside virtual environments to keep project dependencies isolated.
Learn to create isolated Python environments and manage dependencies with built-in tools in Python 3.6 and higher, and discuss pipenv, poetry, conda, and Docker for package management.
Learn to create and activate a Python virtual environment with venv, install packages via pip inside it, and manage dependencies with pip list and requirements.txt.
Learn to create a Windows folder for Python virtual environments, build and activate a venv, install Jupiter notebook and NumPy, and run a simple NumPy example in a notebook.
Create a folder for virtual environments on Mac, set up a Python 3 based environment, install notebook, and run a NumPy example in a notebook.
Set up an interactive development environment with PyCharm community edition, compare it to Jupyter notebooks, and prepare for Python development.
install the PyCharm community edition on mac, download from the official site, and set up the free, open source IDE for Python development.
Install the PyCharm community edition (free) on Windows from JetBrains, set up a desktop shortcut, choose the dark theme, and start using PyCharm for Python development.
Set up a simple Python project in PyCharm on Windows, create and use a virtual environment, configure the interpreter, and import NumPy to run code in a structured folder.
Set up a PyCharm project on macOS with a dedicated virtual environment to run numpy-based code, organize projects under my notebooks, and import modules into Jupyter notebooks.
Learn to use virtual environments, install packages, and build a small Python project with a pie chart setup to download and open web images on Windows and Mac.
Set up a Windows virtual environment for an image project, name the env image, activate it, install pillow and requests, and configure PyCharm to use this interpreter.
Set up a Mac virtual environment for the image project, create and activate the image venv, and install Pelo and requests for development.
Learn to download an image from a url and access the content in memory with Python using the requests library, while setting up PyCharm and a virtual environment.
Import the image module and convert image content from a URL into a Pillow image object, using bytes and Pillow to load and work with the image.
Activate your Python virtual environment, install Jupyter Notebook, and import the Pillow image module to load, display, rotate, and crop images in a Jupyter notebook.
Write a Python function to download images from the web to a local folder. Create directories with os, import necessary libraries, and save Pillow images.
Learn to save Pillow images to nested folders using os.path.join, generate unique filenames with enumerate, and collect image info such as width, height, format, and path.
Explore truthy and falsy values in Python, including none, zero, and empty sequences, and learn basic exception handling with try and except, plus reading and writing files.
Learn about the Python None data type, its falsey behavior, using is and is not for checks, and safe default arguments avoiding mutable defaults.
learn to handle errors and exceptions in python 3, including syntax errors and runtime exceptions, and interpret stack traces to debug code.
Explore common Python exceptions like zero division error, key error, name error, type error, and value error, and learn about built-in exceptions and how to handle them.
Learn to handle exceptions in Python by using try-except blocks to skip invalid data, convert strings to integers, and distinguish value errors from type errors to keep pipelines running.
Learn to use try and except blocks to handle errors in Python. Raise exceptions with custom messages and explore handling, re-raising, and specific errors like value and key errors.
Learn to create user defined exceptions by subclassing the built-in exception, raise a custom exception, and use else and finally clauses in try-except blocks with division by zero.
Explore Python error handling with two examples: validate user input via a while loop and value errors, and handle dictionary operations with multiple exceptions and a finally clause.
Learn to read from and write to files in Python using open, write, append, and context managers, including loops and handling newlines to manage file contents.
Read data from files in Python using with open, f.read, f.readline, and for loops, build line lists, strip newline characters, and briefly explore csv with pandas.
Practice six questions in chapter six to test your understanding of the concepts learned. Solve them independently, review the examples when stuck, and watch for upcoming solution videos.
Explore chapter six practice questions solutions in Python, emphasizing truthy and falsey values, and implement is_empty and add_to_dict with proper mutable-default handling and tests.
Implement read_file to read a local file line by line, strip newlines, and return a list; add error handling for missing files and demonstrate writing data to a file.
Learn how to define Python classes, instantiate objects, and access attributes using the constructor and self. Explore basic object oriented concepts like methods, class methods, class attributes, and simple subclassing.
Add and use methods in a Python class, including an age method using date time to compute birthdate-based age, and a print details method to display information about that person.
Create a bank account class in Python that tracks balance and a transaction history. Learn to implement deposits as instance methods that update state.
Learn to extend a Python bank account class to track the transaction history for deposits and withdrawals using a dictionary of amount, type, details, and date, appending entries in order.
Implement a withdrawal method in the bank account class, prevent transactions that would make the balance go negative, and extend the transaction history with time-stamped records for withdrawals.
Explore a transit bus class in Python that illustrates instance methods and class variables, tracking per-bus passengers and global totals of buses and passengers by adding and removing passengers.
Learn how transit bus class variables track total number of buses and the total number of passengers, updating on bus creation and passenger changes, with class-level access versus instance access.
This lesson demonstrates using a class variable to track all buses in a transit system, updating a shared transit system dictionary whenever buses are added or passengers change.
Learn to use Python class methods and class variables with a transit bus example, including resetting the system and computing total passengers, buses, empty buses, and average per bus.
Explore class inheritance by using a base pet class for cat and dog subclasses in Python, sharing attributes like name, age, color, and owner while customizing behavior.
Discover practical next steps for mastering Python by exploring libraries for your field, from pandas and TensorFlow to Flask; learn tooling like auto-formatting, lint, poetry, and Docker.
This course is for beginners who are interested in learning to code. This course begins with teaching Python 3 in an interactive style through the use of Jupyter Notebooks. You will also learn to write programs within the integrated development environment (IDE) Pycharm.
In the setup videos for the course you will be told how to access the Github Repo which has all the content for the course additional to the videos hosted on Udemy. This additional content contains all the Python code files, the practice questions and solutions, as well as all the material in a nicely formatted online book.
Chapter 1: Intro To Python
interactive Python
Jupyter Notebooks
strings
variables
numerical data types (integers and floats)
string formating with f-strings
indexing and slicing strings
getting input from a user
Chapter 2: Control Flow
boolean data type (True and False)
operators
comparison operators (==, !=, >, <, >=, <=)
logical operators (and, or, not)
membership operators (in, not in)
if, elif, and else statements
lists
indexing and slicing
getting length of a list with len()
appending to a list with append() and extend() methods
list concatenation with + operator
intro to mutable and immutable objects
for loops and while loops
range() function
break and continue and pass statements
more Python basic operators
% modulus
+=, -=, *=, /=
Chapter 3: Functions
What are functions and why do we use them?
Examples of functions that are built into Python.
Defining your own functions.
Function arguments
positional arguments
keyword arguments
default arguments
return statement
Local and global scope
Chapter 4: Data Structures
lists
more list methods
list comprehensions
tuples
dictionaries
keys and values
ways of iterating over dictionaries
sets
using *args and **kwargs in function definitions
Chapter 5: Virtual Environments, Packages, Pycharm IDE
importing libraries in your Python code with import statements
creating virtual environments for projects
installing packages/libraries into those projects with pip
creating your own modules for importing
Setting up an integrated development environment (IDE) with the use of the popular IDE, Pycharm
Chapter 6: Truthy and Falsy Values, None Value, Exception Handling, Reading and Writing Files
Truthy and Falsy values
The None value
About different Python errors and how to do exception handling with try and Except
How to read data from a file and write data back to a file
Chapter 7: Intro to Classes and Object Oriented Programming
defining and creating classes
instantiate an object from a class
instance methods and attributes
class methods and attributes
subclassing and inheritance