Pybites Logo

Newbie Bite Exercises

These Newbie exercises are designed to teach you the fundamentals of Python from scratch. It is intended that you complete these in order from 1 to 50.

Level # Name Tags
Newbie 1 Assigning objects newbie variables
Newbie 2 Basic data types newbie data types
Newbie 3 Basic printing newbie print
Newbie 4 Printing objects newbie print
Newbie 5 Basic maths math newbie
Newbie 6 Additional maths math newbie
Newbie 7 User input input newbie
Newbie 8 String manipulation string manipulation newbie
Newbie 9 Lists newbie list
Newbie 10 Returning items by list index newbie list
Newbie 11 Adding and removing items from a list newbie list
Newbie 12 Dicts newbie list dict
Newbie 13 Dict data retrieval methods newbie
Newbie 14 Functions newbie functions
Newbie 15 Functions part ii newbie functions
Newbie 16 Equals operator equality newbie
Newbie 17 If / else newbie if/else
Newbie 18 Truthiness truthiness newbie
Newbie 19 Less than and greater than comparison newbie
Newbie 20 While loop while newbie
Newbie 21 Comments newbie comments
Newbie 22 For loops looping newbie
Newbie 23 Looping through a dict newbie dict
Newbie 24 Tuples tuples newbie
Newbie 25 Calling a function newbie functions
Newbie 26 Reading errors error handling debugging syntax errors newbie
Newbie 27 Failing tests debugging testing pytest newbie
Newbie 28 Type hints type hints newbie
Newbie 29 Default arguments arguments newbie functions
Newbie 30 Special chars strings special characters newline tab newbie
Newbie 31 Word count strings methods newbie
Newbie 32 Dict retrieval - part 2 dictionaries newbie
Newbie 33 Dict retrieval - part 3 dictionaries newbie
Newbie 34 Random module imports random newbie modules
Newbie 35 Working with dates imports datetime newbie modules
Newbie 36 Working with dates - part 2 imports newbie modules
Newbie 37 Make a class newbie classes
Newbie 38 Class with str newbie dunder methods classes
Newbie 39 Make a dataclass dataclasses newbie classes
Newbie 40 Scope newbie scope
Newbie 41 String manipulations strings string manipulation split lowercase lists newbie slicing
Newbie 42 List comprehension list comprehensions newbie numbers integer isdigit
Newbie 43 Named tuple namedtuples newbie collections
Newbie 44 Constants math newbie constants
Newbie 45 Exceptions exceptions error handling newbie functions
Newbie 46 For loop with break and continue loops control flow break continue newbie
Newbie 47 In operator in operator lists newbie collections
Newbie 48 String module string module string manipulation newbie list comprehensions
Newbie 49 Formatting intro strings newbie string interpolation
Newbie 50 Read the docs documentation reading docs collections newbie