Pybites Logo

Beginner Bite Exercises

The bread and butter of the Pybites Platform, these Regular Bite Exercises will keep you challenged for quite some time.

Don't be disheartened if you get stuck. These are real world exercises that are designed to push you. If you find yourself absolutely stuck, feel free to post in our Community and ask for help.

Level Name Tags
Beginner Sum n numbers sum None default args range
Beginner Parse a list of names lambda min list comprehensions sorting
Beginner Rotate string characters slicing deque
Beginner Enumerate 2 sequences enumerate string formatting
Beginner Pybites date generator generators datetime
Beginner Write a property datetime properties
Beginner Query a nested data structure data structures sorting dictionary comprehensions list comprehensions 100days
Beginner Dictionary comprehensions are awesome dictionary comprehensions 100days
Beginner Martin's iq test enumerate string module
Beginner Don't let mutability fool you mutability deepcopy
Beginner Rewrite a for loop using recursion reverse recursion
Beginner Using elementtree to parse xml movie data xml
Beginner Force keyword arguments function arguments kwargs
Beginner License key generator secrets string module list comprehensions
Beginner Keep a queue of last n items deque
Beginner You are a programmer! code fizz buzz fizzbuzz
Beginner Nicer formatting of a poem or text string manipulation textwrap
Beginner Get the latest game releases from steam's rss feed feedparser namedtuple
Beginner Add a command line interface to our bmi calculator argparse
Beginner Fix a truncating zip function itertools zip 100days
Beginner Calculate the running average of a sequence enumerate itertools mean
Beginner Working with datetimes datetime timedelta 100days
Beginner Remove punctuation characters from a string string module string manipulation
Beginner What day of the week were you born on? calendar
Beginner New places to travel to set set operations
Beginner Check equality of two lists equality list enum
Beginner At what time does pybites live? timezones zoneinfo
Beginner Matching multiple strings string matching all any
Beginner Build unix' wc program in python file processing Unix tempfile
Beginner Display the last part of a file (unix tail) file processing strip Unix slicing
Beginner Count leading spaces string matching counting
Beginner Round a number even (a.k.a. banker's rounding) Decimal rounding
Beginner Work with datetime's strptime and strftime datetime strptime strftime 100days
Beginner Analyze some basic car data data analysis set Counter list comprehensions
Beginner Convert an amazon url into an affiliation link string manipulation regular expressions
Beginner Bloodtypes exception handling multi type input enum
Beginner Look up a value in 3 dictionaries collections dict
Beginner Sorting words with constraint lambda string manipulation sorting
Beginner Round a sequence of numbers math rounding list comprehensions
Beginner Count the number of files and directories counting directories files os module
Beginner Parse an /etc/passwd file output string manipulation split tuple unpacking
Beginner Complete a user class: properties and representation dunder methods properties classes __repr__ string manipulation dunder methods f-strings __str__
Beginner Simple length converter rounding exception handling numbers
Beginner Having fun with python partials rounding partial functools
Beginner Create a variable length chessboard modulo stdout range
Beginner Group names by country groupby collections defaultdict
Beginner Keep a list sorted upon insert bisect data structures classes __str__
Beginner Get statistics from pybites test code file processing data analysis statistics
Beginner Filter a list of names generators break continue looping
Beginner Some logging practice logging callable
Beginner Find the number pairs summing up n looping itertools numbers
Beginner Write a sphinx docstring docstring data types sphinx
Beginner Add type hints to a function typing type hinting annotations
Beginner A countdown generator generators
Beginner Validate a license key bool regular expressions
Beginner Create a sandwich decorator decorators
Beginner Swap case pybites characters string manipulation looping string parsing
Beginner Where are the emojis? regular expressions looping emojis list comprehensions list
Beginner Write tests for fibonacci fibonacci pytest
Beginner Write tests for list_to_decimal exception handling pytest
Beginner Test print / standard output stdout list comprehensions capfd capsys pytest
Beginner Introducing pandas series string module series pandas
Beginner Let's play with pandas series slicing pandas type hinting series numpy
Beginner Global vs local variables sum global
Beginner Extract users dict from a multiline string string parsing dict
Beginner Gc content bioinformatics collections
Beginner Most frequent digit in number counting numbers Counter
Beginner Major and minor numbers min numbers collections max
Beginner Armstrong numbers numbers algorithms
Beginner Like there's no tomorrow? datetime
Beginner Smallest number numbers
Beginner Round to next number math
Beginner N digit numbers numbers
Beginner Join lists iteration joining list
Beginner Print names to columns modulo f-strings print
Beginner Pickling objects data wrangling pickle serialization
Beginner Decode base64 encoded data base64 encode decode
Beginner Identity and equality staticmethod integer caching equality
Beginner Reading progress datetime numbers
Beginner Iterables intersection functools set operations
Beginner Pretty string pprint
Beginner Fastapi hello world FastAPI
Beginner A little detour: pydantic Pydantic FastAPI
Beginner Which words can you type with one hand? comparison set enum
Beginner Transform a script into a command line interface (cli) Typer command line
Beginner Create your first typer command line interface (cli) application Typer command line
Beginner Add a progress bar to your command line interface (cli) Typer rich command line
Beginner Python3.9 - dictionary merge union dict
Beginner Validate pangram strings hashing string algorithms
Beginner Reverse only letters strings stacks queues
Beginner Uppercase Vowels loops string manipulation strings Hacktoberfest
Beginner Subclassing: Vehicles in Motion subclassing super classes inheritance
Beginner Your First SQLModel Tables databases SQLModel ORM sqlite3
Beginner Session Management & Basic Inserts Session SQLModel ORM sqlite3
Beginner Reading Data with Select queries SQLModel ORM sqlite3
Beginner Update and Delete Operations SQLModel ORM sqlite3 CRUD
Beginner One-to-Many Relationships SQLModel ORM sqlite3 Relationships Foreign Keys