Introduction to Python
Discover Python, the universal language: print(), comments and indentation
Variables and types
str, int, float, bool, f-strings and type conversions
Conditions and loops
if/elif/else, comparison and boolean operators, for and while loops, break and continue
Lists and dictionaries
Lists, slicing, list comprehensions, dictionaries and tuples
Functions
def, return, default parameters, *args, **kwargs and built-in functions
Classes and objects
class, the __init__ constructor, self, attributes and methods, instances and __str__
Files and modules
open(), with, import, pip install and the os, json, datetime modules
Error handling
try/except/finally, common exceptions (ValueError, FileNotFoundError) and raise
APIs and web scraping
requests, REST APIs, BeautifulSoup and scraping ethics
What you will learn
Write Python scripts to automate tasks
Manipulate data with lists, dictionaries and files
Communicate with REST APIs and fetch web data
Create your own modules and use pip
Play to practise
Free games to practise Python while having fun.