
Improve your Python 3 skills from beginner to intermediate by exploring operators, managing files, nested functions, decorators, advanced argument handling, virtual environments, third party packages, and API requests.
Discover how the in operator in Python, an intermediate concept, checks membership across lists, dictionaries, tuples, and sets, with rock, paper, scissors examples and practical, hands-on exploration.
Learn how the not operator in Python 3 inverts boolean values and conditions, including not in with lists, plus guidelines on readability and practical examples.
Learn how to read files in Python using a context manager to safely open, read, and print contents, ensuring memory efficiency and automatic file closing.
Learn how to open, read, and write files in Python, create new files, and use a context manager with write and append modes, including new line and tab characters.
Learn to read multiple lines from a file in Python, convert them into a list, and filter emails with the in operator and strip to remove newlines.
Create and write dynamic files from user input, using a context manager to save, read, and optionally open the file. The lesson also covers nested structures and functions inside functions.
Explore functions nested inside other functions in Python, and learn how scope allows inner definitions to access outer variables, while reviewing execution, arguments, and the idea of decorators.
Learn to make a simple api request using the requests package, check a 200 status, and build an uptime monitor with a loop and timed pauses.
Make a JSON API request with requests, fetch data from a star wars themed API's people endpoint, parse JSON into a Python dictionary, and access name, birth year, and films.
Learn to read and edit JSON in Python by converting a JSON string to a dictionary with json.loads, modifying fields, and converting back with json.dumps for output.
Explore Python function arguments and learn how *args collects unlimited positional arguments into a tuple, with Django examples, enabling you to add or print numbers.
Learn Python function kwargs by using *args and **kwargs to handle positional, optional, and keyword arguments, illustrated with a pizza order and price calculations.
Learn how to install and verify pip, Python’s package manager, use pip install to add packages like requests, and recognize when Python ships with pip.
Explore the difference between mutable and immutable in Python, showing that strings are immutable while lists are mutable and can be appended, with behind-the-scenes memory behavior.
Learn how to use Python's enumerate to obtain index values from a list, unpack them, and print a numbered or filtered list using for loops and f-strings.
Explore list comprehensions as a pythonic, one-line replacement for for loops to build a list and square numbers, with a future look at dictionary comprehensions.
Learn to build dictionaries with dictionary comprehensions by unpacking tuples, mapping keys to values, and using curly braces or dict() casting, plus a quick compare to the long form.
Learn how to retrieve dictionary values by key using get, handle missing keys with defaults or None, and conditionally act on results with if statements, illustrated by a courses dictionary.
Learn how to use Python virtual environments to isolate packages, manage multiple Django versions with pip, create and activate environments on Mac, Linux, and Windows, then deactivate when done.
Learn Python interactively by exploring built-in methods on strings, lists, tuples, and dictionaries, using dot-notation, split, and join to experiment in shells.
Install and manage Python packages with pip, set up a virtual environment, and import and initialize Kalorama to produce colored terminal output per the documentation.
Review how to perform API requests with the requests package, fetch JSON data, convert to a Python dictionary, and iterate over related resources using the pokey api.
Build a Pokemon character app that fetches data from an api using user input, converts json to a dictionary, and displays abilities, moves, and other stats.
Celebrate finishing the course and access ongoing coding tips, updates, and a supportive community through Twitter, Instagram, and the learning to code group on Facebook.
Welcome to Python 201: Intermediate Python 3 programming.
In this class, you will be learning the ins-and-outs of Python. You will learn how to:
use more advanced conditional statements,
how to read and write files using Python,
how to make API requests,
how to use 3rd party packages,
list and dictionary comprehensions,
virtual environments,
and much more.
At the end of this class, you will create a Pokemon program that looks up a pokemon by its name using an API — this is great practice for consuming API's like you normally would as a professionally paid Python programmer.
To get the most out of this course you should have taken Python 101 and another Python beginner course.
—
Your project: Create a Pokemon data program using an API.
You will create a program that asks for a pokemon name and then look for additional data using an API.
The API is completely free to use, too.
This project mimics the type of work you'll do as a professionally paid Python programmer and is considered to be a real-life project.
—
The most important part of this course is learning how to manage (install and uninstall) 3rd party packages, how to use them, and how to make API requests.
API requests are how computers talk to each other. It's absolutely vital you know how API requests work in Python, and you'll learn all about them in this course.
—
Who is this course for?
This course is for anybody who has written a little bit of Python but is looking for more experience.
Programmers or web developers who are looking for some hands on experience while they learn
This course is NOT for people who have never written any Python.
—
What are the requirements?
You need a code editor like PyCharm or VS Code
You need to have Python downloaded and installed
You need to be ready to work with code and not just watch the videos. This is a hands on course.
You need to be willing to do a little work to properly learn Python3