Python Practice › Basic Programs

Python Basic Programs with Solutions

40 programs34 easy6 medium0 hard

Start here if you are new to Python. These 40 basic programs use only variables, arithmetic, a few built-in modules and print(), and each one comes with an explained solution you can run in the browser.

Advertisement
Before you start

Read the Variables and Numbers & Math and Operators & Booleans lesson first if the topic is new to you.

All programs

Advertisement