PythonBeginner
Learn Python 3
Codecademy's interactive Python course teaches you the basics from scratch. Write and run code in your browser, learn syntax, functions, control flow, lists, loops, and more.
Free course on Harvard CS50
Certificate available on completion.
Open Course Premium versionCS50's Introduction to Programming with Python (often called CS50P) is free on two paths. Harvard publishes the whole course at cs50.harvard.edu/python, with lectures, problem sets, and solutions open to anyone, no account needed. edX hosts the same material and adds an optional verified certificate. Our 'Go deeper' button sends you to the edX listing, and we earn nothing from it: we are not in edX's affiliate program. Finish it and you can write real Python programs from the command line, with functions, file handling, exception handling, unit tests, and regular expressions: the same building blocks CS50x teaches, but slower and Python-only. Take it if you're starting from zero and want Python without the detour through C. Skip it if you already know Python basics, because CS50x's wider sweep across C, SQL, and the web will give you more. One honest limitation: CS50P stays in the terminal from the first lecture to the last. It never touches web frameworks or Django, so if web development is the goal, plan on CS50W or a framework course after it instead of treating this as the whole path. Use Harvard's site to learn for free, or use edX if you want the certificate for employers.
CS50P is one of the newer courses in Harvard's CS50 family, which has drawn nearly 5 million learners overall (source: Fortune Education, fortune.com/education).
Harvard's introduction to programming using Python. Covers functions, variables, conditionals, loops, exceptions, libraries, unit tests, file I/O, and regular expressions.
PythonBeginner
Codecademy's interactive Python course teaches you the basics from scratch. Write and run code in your browser, learn syntax, functions, control flow, lists, loops, and more.
PythonBeginner
Khan Academy's friendly introduction to programming with Python. Learn variables, data types, functions, conditionals, and loops through short lessons with immediate feedback.
PythonBeginner
Harvard's legendary CS50 introduction to computer science. Covers C, Python, SQL, JavaScript, and web programming. The most-enrolled university course in the world.