Skip to content

python-beginner-help/python-beginner-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python Beginner Help

Python Beginner Exercises πŸ‹οΈπŸ

Small, runnable practice exercises for new Python programmers β€” each with a built-in self-check and a worked solution.

These exercises mirror the learning track on pythonbeginner.help. Read a topic, then practice it here.

How to use

  1. Make sure you have Python installed (3.8+).

  2. Open an exercise in the exercises/ folder and complete the TODO.

  3. Run it β€” each file checks your answer with assert and prints βœ… when it passes:

    python exercises/01_variables.py
  4. Stuck? Compare with the matching file in solutions/.

Exercises

# Exercise Topic Tutorial
01 Variables & types Variables, int/str Learn β†’
02 String methods Strings, slicing Learn β†’
03 Lists Lists, indexing Learn β†’
04 Loops for / range Learn β†’
05 Functions def, return values Learn β†’

Run all exercises at once

for f in exercises/*.py; do echo "== $f =="; python "$f"; done

More

License

Released under CC0 1.0 by pythonbeginner.help β€” copy, remix, and teach with these freely.

About

Runnable beginner Python exercises with self-checks and solutions. Powered by pythonbeginner.help

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages