Bites of Py Catalogue

Bite Level Tags
Bite 1. Sum n numbers Beginner level icon Nonedefault argsrangesum
Bite 2. Regex Fun Advanced level icon findallreregular expressions
Bite 3. Word Values Intermediate level icon Scrabblemaxsum
Bite 4. Top 10 PyBites tags Intermediate level icon Counterfindallregular expressions
Bite 5. Parse a list of names Beginner level icon lambdalist comprehensionsminsorting
Bite 6. PyBites Die Hard Intermediate level icon Counterfile processinggeneratorsnamedtuple
Bite 7. Parsing dates from logs Intermediate level icon datetimefile processing
Bite 8. Rotate string characters Beginner level icon dequeslicing
Bite 9. Palindromes Intermediate level icon list comprehensionsmaxreverse
Bite 10. Practice exceptions Intermediate level icon exception handlingraise
Bite 11. Enrich a class with dunder methods Advanced level icon dunder methodsproperties
Bite 12. Write a user validation function Intermediate level icon classesexception handlingnamedtuple
Bite 13. Convert dict to namedtuple/json Intermediate level icon dictjsonnamedtuple
Bite 14. Generate a table of n sequences Intermediate level icon generatorszip
Bite 15. Enumerate 2 sequences Beginner level icon enumeratestring formatting
Bite 16. PyBites date generator Beginner level icon datetimegenerators
Bite 17. Form teams from a group of friends Intermediate level icon itertools
Bite 18. Find the most common word Intermediate level icon Counterdata analysislist comprehensions
Bite 19. Write a simple property Beginner level icon datetimeproperties
Bite 20. Write a context manager Advanced level icon context managersdunder methodsoperator overloadingwith statement
Bite 21. Query a nested data structure Beginner level icon data structuresdictionary comprehensionslist comprehensionssorting
Bite 22. Write a decorator with argument Intermediate level icon decorators
Bite 23. Find words that are > 95% similar Advanced level icon SequenceMatcherdifflibfile processingfindallitertools
Bite 24. ABC's and class inheritance Advanced level icon ABCsabstractmethodclassesinheritance
Bite 25. No promo twice, keep state in a class Intermediate level icon classesexception handlingproperties
Bite 26. Dictionary comprehensions are awesome Beginner level icon dictionary comprehensions
Bite 27. Parse omdb movie json data Intermediate level icon APIsglobjsonmovie data
Bite 28. Converting date strings to datetimes Intermediate level icon Counterdatetimefindall
Bite 29. Martin's IQ test Beginner level icon enumeratestring module
Bite 30. Movie data analysis Intermediate level icon data analysisdefaultdictmeanmovie datanamedtuplesorting
Bite 31. Matrix multiplication / @ operator Advanced level icon __matmul__dunder methodsoperator overloading
Bite 32. Don't let mutability fool you Beginner level icon deepcopymutability
Bite 33. Transpose a data structure Intermediate level icon dictzip
Bite 34. Building a Karma app - implement the User class Advanced level icon classesdunder methodsnamedtupleoperator overloadingproperties
Bite 35. Having fun with heapq Intermediate level icon datetimeheapq
Bite 36. Having fun with *args and **kwargs Intermediate level icon argsfunction argumentskwargs
Bite 37. Rewrite a for loop using recursion Beginner level icon recursionreverse
Bite 38. Using ElementTree to parse XML Beginner level icon movie dataxml
Bite 39. Calculate the total duration of a course Intermediate level icon datetimefindallnumberstimedelta
Bite 40. Write a binary search algorithm Advanced level icon algorithmsbinary search
Bite 41. Write a login_required decorator Intermediate level icon decorators
Bite 42. Number Guessing Game Class Advanced level icon classesgamesrandom
Bite 43. Force keyword arguments Beginner level icon function argumentskwargs
Bite 44. License key generator Beginner level icon list comprehensionssecretsstring module
Bite 45. Keep a queue of last n items Beginner level icon deque
Bite 46. You are a programmer! Code Fizz Buzz Beginner level icon fizzbuzz
Bite 47. Write a new password field validator Intermediate level icon restring module
Bite 48. Make a bar chart of new Safari books Intermediate level icon bar chartdata analysis
Bite 49. Scrape Packt's html with BeautifulSoup Intermediate level icon beautifulsoupnamedtuplerequests
Bite 50. Make a little PyBites search engine (feedparser) Advanced level icon anyfeedparserlist comprehensionsnamedtuplesearch
Bite 51. When does Python 2 die on Planet Miller? Intermediate level icon datetime
Bite 52. Create a movie quote API with Flask Advanced level icon APIsFlaskmovie data
Bite 53. Convert text into multiple columns Advanced level icon string manipulation
Bite 54. Nicer formatting of a poem or text Beginner level icon string manipulationtextwrap
Bite 55. Get the latest game releases from Steam's RSS feed Beginner level icon feedparsernamedtuple
Bite 56. Add a command line interface to our BMI calculator Beginner level icon argparse
Bite 57. Create a simple calculator that receives command line arguments Intermediate level icon argparsefunctoolsreduce
Bite 58. Using argparse to interface with a grocery cart Advanced level icon argparse
Bite 59. Create a multiplication table class of variable length Intermediate level icon classesdunder methodsexception handlingnumbers
Bite 60. Create a deck of Uno cards Intermediate level icon list comprehensionslistnamedtuple
Bite 61. Create a variable size Paw Patrol card deck with random actions Advanced level icon itertoolsnamedtuplerandomstring module
Bite 62. Data structures matter - speed up your Python code Intermediate level icon data structuresperformance
Bite 63. Use an infinite iterator to simulate a traffic light Advanced level icon iteratorsitertoolsnamedtuple
Bite 64. Fix a truncating zip function Beginner level icon itertoolszip
Bite 65. Get all valid dictionary words for a draw of letters Intermediate level icon Scrabbleitertools
Bite 66. Calculate the running average of a sequence Beginner level icon enumeratemean
Bite 67. Working with datetimes Beginner level icon datetimetimedelta
Bite 68. Remove punctuation characters from a string Beginner level icon string manipulationstring module
Bite 69. Regex Fun - part II Advanced level icon reregular expressions
Bite 70. Create your own iterator Intermediate level icon iteratorsrandom
Bite 71. Keep state in a class + make its instance callable Intermediate level icon classesdunder methods
Bite 72. Retrieve the right Ninja Belt based on score Intermediate level icon OrderedDictitertools
Bite 73. Organize a meeting between timezones (pytz) Intermediate level icon pytztimezones
Bite 74. What day of the week were you born on? Beginner level icon calendar
Bite 75. Parse Unix cal to a weekday mapping Advanced level icon Unixrezip
Bite 76. The singledispatch countdown challenge Advanced level icon decoratorsfunctoolssingledispatch
Bite 77. New places to travel to Beginner level icon set operationsset
Bite 78. Find programmers with common languages Intermediate level icon set operationsset
Bite 79. Parse a csv file and create a bar chart Intermediate level icon bar chartcommunitycsvrequests
Bite 80. Check equality of two lists Beginner level icon enumequalitylist
Bite 81. Filter and order tweets by polarity values Intermediate level icon TextBlobTwitternamedtuple
Bite 82. Define a Score Enum and customize it adding methods Intermediate level icon __str__classmethodenum
Bite 83. At what time does PyBites live? Beginner level icon pytztimezones
Bite 84. Flatten lists recursively (Droste Bite) Intermediate level icon listrecursion
Bite 85. Write an advanced property Advanced level icon classesproperties
Bite 86. Create a RGB-to-Hex converter Intermediate level icon string formatting
Bite 87. Convert Decimal to Roman Numerals Intermediate level icon OrderedDictnumbers
Bite 88. Write a performance monitoring context manager Advanced level icon Countercontext managers
Bite 89. Playing with lists and dicts Intermediate level icon data structuresdictlist
Bite 90. What South Park characters talk most? Intermediate level icon Countercsvdata analysisdefaultdictrequests
Bite 91. Matching multiple strings Beginner level icon allanystring matching
Bite 92. Humanize a datetime Intermediate level icon datetimenamedtuple
Bite 93. Rock-paper-scissors and generator's send Advanced level icon coroutinesgamesrandom
Bite 94. Parse PyCon talk data from YouTube Advanced level icon list comprehensionsmaxnamedtuple
Bite 95. Subclass the dict built-in Intermediate level icon classesinheritance
Bite 96. Build Unix' wc program in Python Beginner level icon Unixfile processingtempfile
Bite 97. BeautifulSoup II - scrape US holidays Intermediate level icon beautifulsoupdefaultdictdict
Bite 98. Code your way out of a grid Advanced level icon loopingnamedtuplenumberstuple unpacking
Bite 99. Write an infinite sequence generator Intermediate level icon generatorsitertoolsstring modulezip
Bite 100. Display the last part of a file (Unix tail) Beginner level icon Unixfile processingslicingstrip
Bite 101. f-strings and a simple if/else Intro level icon f-stringsif/else
Bite 102. Infinite loop, input, continue and break Intro level icon breakcontinueinputmock.patchwhile
Bite 103. Loop through a dictionary and pluralise a word Intro level icon dictlooping
Bite 104. Split and join Intro level icon joinsplit
Bite 105. Slice and dice Intro level icon replaceslicingsplitstring modulestrip
Bite 106. Strip out vowels and count the number of replacements Intro level icon Zen of Pythoncountingregular expressionsreplacestring manipulation
Bite 107. Filter numbers with a list comprehension Intro level icon list comprehensionsmodulo
Bite 108. Loop over a dict of namedtuples calculating a total score Intro level icon countingdictnamedtuple
Bite 109. Workout dict lookups and raising an exception Intro level icon dictexception handlingformatstring manipulationternary
Bite 110. Type conversion and exception handling Intro level icon exception handlingraisetype casting
Bite 111. Use the ipinfo API to lookup IP country Intermediate level icon APIsjsonmock.patchrequests
Bite 112. Social Media Username Validator Advanced level icon namedtuplerangereregular expressionsstring manipulationstring matchingtyping
Bite 113. Filter words with non-ascii characters Intermediate level icon allasciiordunicode
Bite 114. Implement a Color class with classmethods Intermediate level icon __repr____str__classmethodhexstring module
Bite 115. Count leading spaces Beginner level icon countingstring matching
Bite 116. List and filter files in a directory Intermediate level icon generatorsglobos module
Bite 117. Round a number even (a.k.a. banker's rounding) Beginner level icon Decimalrounding
Bite 118. List exercise: return first occurrence indices of duplicated words Intermediate level icon countinglist comprehensionsset
Bite 119. Xmas tree generator Intermediate level icon default argsjoinrangestring formatting
Bite 120. Write a numbers validation decorator Intermediate level icon decorators
Bite 121. Determine the strength of a password Advanced level icon restring matching
Bite 122. Check if two words are anagrams Intermediate level icon anagramstring matching
Bite 123. Find the user with most friends Intermediate level icon defaultdictloopingsortingtuples
Bite 124. Marvel data analysis Advanced level icon Countercsvdata analysislist comprehensionsroundingsum
Bite 125. Get the most recommended books Intermediate level icon Counterbeautifulsoupdefault argslist comprehensionsrequests
Bite 126. The Emoji (Unicode) Bite Advanced level icon emojissysunicode
Bite 127. Return the right ordinal suffix for a number Intermediate level icon dictmodulonumbersstring manipulation
Bite 128. Work with datetime's strptime and strftime Beginner level icon datetimestrftimestrptime
Bite 129. Analyze Stock Data Intermediate level icon countingdata analysisjsonrequestssortingstring manipulation
Bite 130. Analyze some basic Car Data Beginner level icon Counterdata analysislist comprehensionsset
Bite 131. Screen scraper Advanced level icon dictindexregular expressionsslicingstring manipulation
Bite 132. Find the word with the most vowels Intermediate level icon countinglambdalist comprehensionsstring matching
Bite 133. Convert an Amazon URL into an affiliation link Beginner level icon regular expressionsstring manipulation
Bite 134. Two Sums Advanced level icon indexloopingsortingsum
Bite 135. Sort a list of book objects Intermediate level icon attrgetterdatetimelambdalistnamedtupleoperatorsorting
Bite 136. Bloodtypes Beginner level icon enumexception handlingmulti type input
Bite 137. Gourmets' Nightmare Intermediate level icon Counterintersectionoperatorsorting
Bite 138. OOP fun at the Zoo Intermediate level icon __str__classesclassmethoditertools
Bite 139. Calculate a coding streak in days Advanced level icon datetimestring manipulationtimedelta
Bite 140. PyBites First Pandas Bite Intermediate level icon csvdata analysispandas
Bite 141. Primitive date format inferrer Intermediate level icon classmethoddatetimeenumexception handling
Bite 142. Exception Handling: Calculate the Winning Player Intermediate level icon exception handlingnamedtuplenumbers
Bite 143. Look up a value in 3 dictionaries Beginner level icon collectionsdict
Bite 144. Calculate the Number of Months Passed Intermediate level icon datetimedateutilexception handling
Bite 145. Record Breakers Advanced level icon csvdata analysispandas
Bite 146. Rhombus generator Intermediate level icon f-stringsformatstring formatting
Bite 147. 100 WEEKDays of Code Date Range Intermediate level icon datetimedateutil
Bite 148. Print Car Data Grouped by Manufacturer Intermediate level icon data structuresitertoolsoperatorsorting
Bite 149. Sorting words with constraint Beginner level icon lambdasortingstring manipulation
Bite 150. Turn messy CSV into JSON Intermediate level icon csvjsonpandasrestring manipulation
Bite 151. Contemporary Composers Intermediate level icon datetimedictexception handlinggeneratorsnamedtuple
Bite 152. Manipulate string decorator Advanced level icon decoratorskwargsliststring manipulation
Bite 153. Round a sequence of numbers Beginner level icon list comprehensionsmathrounding
Bite 154. Write your own Data Class Intermediate level icon data classesdata structureshashablesortingtype hinting
Bite 155. Split a string by spaces or quoted text Intermediate level icon splitstring manipulation
Bite 156. Make an index of story characters Intermediate level icon collectionsdefaultdictenumeratesortingstring matching
Bite 157. Filter out accented characters Intermediate level icon string matchingunicode
Bite 158. Subclass the list built-in Advanced level icon dunder methodsexception handlinginheritancelistmeanmedianoperator overloadingpropertiesstatistics
Bite 159. Create a simple calculator Intermediate level icon exception handlingnumbersoperator
Bite 160. 15-way Rock Paper Scissors Advanced level icon csvdictexception handlinggames
Bite 161. Count the number of files and directories Beginner level icon countingdirectoriesfilesos module
Bite 162. Vertically align output of counters Intermediate level icon string formatting
Bite 163. Which packages were upgraded? Intermediate level icon comparisondictnumbersstring manipulation
Bite 164. CLI tool: HTML link converter (stdin to stdout) Advanced level icon data wranglingexception handlinghtmlstdinstring formattingstring manipulationsys
Bite 165. Parse an /etc/passwd file output Beginner level icon splitstring manipulationtuple unpacking
Bite 168. Ninja Rankings Advanced level icon bisectclassesdata classesdunder methodsheapqtuples
Bite 166. Complete a tox ini file parser class Intermediate level icon classesconfigparserpropertiesstring matchingstring parsingtox
Bite 167. Complete a User class: properties and representation dunder methods Beginner level icon __repr____str__classesdunder methodsf-stringspropertiesstring manipulation
Bite 169. Simple length converter Beginner level icon exception handlingnumbersrounding
Bite 174. String manipulation and metrics Advanced level icon Counterdata classeslist comprehensionspropertiesstring formattingstring manipulationtranslate
Bite 170. Analyze McDonald's food data Advanced level icon data analysispandas
Bite 171. Make a terminal spinner animation Advanced level icon command lineitertoolsstdoutsystime
Bite 172. Having fun with Python Partials Beginner level icon functoolspartialrounding
Bite 173. Set up future notifications Intermediate level icon datetimef-stringsfindalltimedelta
Bite 175. Find missing dates Intermediate level icon datetimedateutilpandas
Bite 176. Create a variable length chessboard Beginner level icon modulorangestdout
Bite 177. Use Pandas to find most common genres in a movie excel sheet Advanced level icon data cleaningexcelgroupbymovie datapandas
Bite 178. Parse PyBites blog git commit log Intermediate level icon Counterdata analysisdatetimedateutilstring parsing
Bite 179. Strip comments from Python code Advanced level icon commentsregular expressionsstring parsing
Bite 180. Group names by country Beginner level icon collectionsdefaultdictgroupby
Bite 181. Keep a list sorted upon insert Beginner level icon __str__bisectclassesdata structures
Bite 182. Parse a bunch of quotes from HTML Intermediate level icon dictregular expressionsstring manipulationstring parsing
Bite 183. Analyze sales data with pandas Advanced level icon data analysisgroupbypandas
Bite 184. Analyze some Bite stats data Intermediate level icon Countercsvdata analysisset
Bite 185. Create a simple spelling suggester Intermediate level icon SequenceMatcherdifflibstring matching
Bite 186. Calculate number of books to have read at date ... Intermediate level icon datetimedateutilexception handling
Bite 187. Actor/actress age at movie release Intermediate level icon data classesdateutilf-strings
Bite 188. Get statistics from PyBites test code Beginner level icon data analysisfile processingstatistics
Bite 189. Filter a list of names Beginner level icon breakcontinuegeneratorslooping
Bite 192. Some logging practice Beginner level icon callablelogging
Bite 190. Parse income distribution from Latin America XML Intermediate level icon data analysisdefaultdictxml
Bite 191. Starwars character with highest BMI Intermediate level icon maxoperatorstring manipulationtuple unpacking
Bite 193. Most upvoted StackOverflow Python questions Intermediate level icon beautifulsouprequestssortingstring matchingweb scraping
Bite 194. Add caching to a Fibonacci function Intermediate level icon fibonaccifunctoolslru_cacheperformance
Bite 195. Analyze NBA Data with sqlite3 Intermediate level icon SQLdata analysissqlite3
Bite 196. Create a JS-like dict object Advanced level icon classesdictinheritancejavascript
Bite 197. What date is Mother's Day celebrated? Intermediate level icon datetimedateutil
Bite 198. Calculate my Mac's longest uptime Advanced level icon data wranglingdatetimedateutilstring parsing
Bite 199. Multiple inheritance (__mro__) Intermediate level icon __mro__classesinheritancemultiple inheritance
Bite 200. 🥳 Minecraft Enchantable Items Advanced level icon beautifulsoupweb scraping
Bite 201. Call a Cisco Nexus 9k device Intermediate level icon networkingrequests
Bite 202. Analyze some Bite stats data - part II Intermediate level icon csvdata analysissorting
Bite 203. Type hinting practice Intermediate level icon classesdata classestype hinting
Bite 204. Pomodoro with asyncio Advanced level icon asynciopomodoro
Bite 205. Female speakers @ Pycon US Intermediate level icon beautifulsoupcountingdata wranglinggender_guesser
Bite 206. Calculate and evenly split the bill Intermediate level icon Decimalnumbersrounding
Bite 207. Cached property decorator Advanced level icon cachingclassesdecoratorsproperties
Bite 208. Find the number pairs summing up N Beginner level icon itertoolsloopingnumbers
Bite 209. Write a Sphinx docstring Beginner level icon data typesdocstringsphinx
Bite 210. Add Type Annotations Beginner level icon annotationstyping
Bite 211. Write a retry decorator Advanced level icon decoratorsexception handling
Bite 212. Suppressing exceptions Intermediate level icon context managersexception handling
Bite 213. Code a translation fixer Advanced level icon regular expressions
Bite 214. A countdown generator Beginner level icon generators
Bite 215. Validate a license key Beginner level icon boolregular expressions
Bite 216. Parse an email header Advanced level icon regular expressions
Bite 217. Capture stdout Intermediate level icon StringIOcontext managers
Bite 218. Create a sandwich decorator Beginner level icon decorators
Bite 219. Bite notification planner Intermediate level icon datetimegenerators
Bite 220. Analysing @pythonbytes RSS feed Advanced level icon Counterclassesfeedparsermaxminnamedtupleregular expressionsstring matchingtype hinting
Bite 221. Parse best selling lists using the NY Times API Intermediate level icon APIsjsonrequests
Bite 222. Split an iterable in groups of size n Intermediate level icon generatorsiteratorsitertoolslooping
Bite 223. Unix file permissions Intermediate level icon dictlist comprehensionsstring manipulation
Bite 224. Get sentences from a text Advanced level icon data wranglingregular expressionsstring manipulation
Bite 225. Swap case PyBites characters Beginner level icon loopingstring manipulationstring parsing
Bite 226. Get top titles from news.python.sc Intermediate level icon beautifulsoupnamedtuplenewsrequestssortingstring parsingweb scraping
Bite 227. Convert Warcraft json data to csv Intermediate level icon csvexception handlingjson
Bite 228. Create a Gravatar URL Intermediate level icon gravatarhashlibstring formatting
Bite 229. Scrape best programming books Advanced level icon beautifulsoupbooksclassesdata cleaningdata wranglingsortingweb scraping
Bite 230. Thumbs up for operator overloading Intermediate level icon classesdunder methodsemojisexception handlingoperator overloading
Bite 231. Where are the emojis? Beginner level icon emojislist comprehensionslistloopingregular expressions
Bite 232. Analyze gold prices Intermediate level icon comparisondata analysisloopingpandassortingstring parsing
Bite 233. Make a zipfile of the latest log files Intermediate level icon datetimeos modulepathlibzipfile
Bite 234. Capitalize sentences Intermediate level icon regular expressionsstring manipulationstring matchingstring parsing
Bite 235. Which Bite has the fastest tests? Intermediate level icon pytestsortingstring parsingtype casting
Bite 236. User experience matters! Suggest matching files Intermediate level icon difflibfilespathlib
Bite 237. Get the dates Ninja belts were earned Advanced level icon datetimejsonloopingsorting
We use Python 3.7