Learn Python - For Beginners

Python

Learn programming fundamentals such as variables, control flow, and loops with the world's most popular and versatile coding language — Python!

Start Learning for Free

Time to complete: 22h

+1.11M learners

Hello World

Learn how to write your first line of Python by printing messages to the terminal.

Exercise 1

Setting Up
Start

Exercise 2

Hello World
???

Exercise 3

Pattern
???

Exercise 4

Initials
???

Exercise 5

Snail Mail
???

Bonus Article

Complete chapter to unlock
???

Variables

Create variables and learn about data types, arithmetic operators, and user input.

Exercise 6

Data Types
Start

Exercise 7

Temperature
???

Exercise 8

BMI
???

Exercise 9

Pythagorean
???

Exercise 10

Currency
???

Bonus Article

Complete chapter to unlock
???

Challenge Pack

Complete chapter to unlock
???

Control Flow

Explore how programs "make decisions" with if/else statements, relational operators, and logical operators.

Exercise 11

Coin Flip
Start

Exercise 12

Grades
???

Exercise 13

pH Levels
???

Exercise 14

Magic 8 Ball
???

Exercise 15

The Cyclone
???

Exercise 16

Sorting Hat
???

Bonus Article

Complete chapter to unlock
???

Challenge Pack

Complete chapter to unlock
???

Loops

Repeat a block of code with while loops and for loops over, and over, and over again.

Exercise 17

Enter PIN
Start

Exercise 18

Guess Number
???

Exercise 19

Detention
???

Exercise 20

99 Bottles
???

Exercise 21

Fizz Buzz
???

Bonus Article

Complete chapter to unlock
???

Challenge Pack

Complete chapter to unlock
???

Checkpoint Project

Practice your Python chops with a checkpoint project! Choose from one of three projects and submit your code when you're done. Your project is reviewed by a mentor when you request a course certificate.

Choose a Project

Lists

Store different items in lists and learn to use built-in functions and methods.

Exercise 22

Grocery
Start

Exercise 23

To-Do
???

Exercise 24

Inventory
???

Exercise 25

Reading
???

Exercise 26

Mixtape
???

Exercise 27

Bucket List
???

Bonus Article

Complete chapter to unlock
???

Bonus Article

Complete chapter to unlock
???

Challenge Pack

Complete chapter to unlock
???

Functions

Define and call a function – reusable block of code that performs a specific task.

Exercise 28

D.R.Y.
Start

Exercise 29

Fortune Cookie
???

Exercise 30

Mars Orbiter
???

Exercise 31

Calculator
???

Exercise 32

Stonks
???

Exercise 33

Drive-Thru
???

Bonus Article

Complete chapter to unlock
???

Challenge Pack

Complete chapter to unlock
???

Classes & Objects

Create your own data types and use them to model everyday objects with unique characteristics and behaviors.

Exercise 34

Restaurants
Start

Exercise 35

Bob's Burgers
???

Exercise 36

Favorite Cities
???

Exercise 37

Bank Accounts
???

Exercise 38

Pokédex
???

Modules

Import built-in modules and learn how to create our own.

Exercise 39

Slot Machine
Start

Exercise 40

Solar System
???

Exercise 41

Countdown
???

Exercise 42

Forty Two
???

Exercise 43

Zen of Python
???

Final Project

Complete all exercises to unlock the Final Project

Ready to start building? Use the skills you've gained throughout the course to build out a fully-fledged Python project!

Final Project

Course Certificate

Finished with this course? Request a certificate to celebrate your hard work! To be eligible to request a certificate, make sure you submit the following project(s) and have them reviewed by a code mentor.

requirements

Want to learn more about Python?

Ask me anything

Your Name
Level 1

Create an account to save your progress.

Course Progress

Course Badges

Cheat Sheets

Need Python Help? Ask questions in our community!

Go to Community

Join the Club

Want to take your learning to the next level?

Get full access to all courses and more for as low as $9.99 / month.

Join Club now