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