Bite 324. Pretty string
|
|
Write a function that returns a neatly formatted string representation β¦
3.10
pprint
|
|
Newbie Bite 03. Basic Printing
|
|
Before we dive too far into these objects, let's quickly β¦
3.10
freebie
newbie
print
|
|
Newbie Bite 04. Printing Objects
|
|
Excellent! We know things! Now that we have data assigned β¦
3.10
newbie
print
|
|
Bite 314. Print names to columns
|
|
In this Bite you will use the modulo operation. You β¦
3.10
f-strings
modulo
print
|
|
Bite 48. Make a bar chart of new Safari books
|
|
Some time ago we made a little Slack bot to β¦
3.10
bar chart
data analysis
|
|
Bite 54. Nicer formatting of a poem or text
|
|
In this Bite you complete print_hanging_indents to print a poem β¦
3.10
string manipulation
textwrap
|
|
Bite 76. The singledispatch countdown challenge
|
|
We are stoked and grateful to have Martin have you β¦
3.10
decorators
functools
singledispatch
|
|
Bite 82. Define a Score Enum and customize it adding methods
|
|
Starting Python 3.4 there is support for enumerations (not to β¦
3.10
classmethod
enum
__str__
|
|
Bite 85. Write a score property
|
|
After Bite 19. Write a simple property let's write a β¦
3.10
classes
properties
|
|
Bite 88. Write a performance monitoring context manager
|
|
It's time for Context Managers part II. In Bite 20 β¦
3.10
context managers
Counter
|
|
Bite 92. Humanize a datetime
|
|
In this Bite you will convert a timedelta object into β¦
3.10
datetime
namedtuple
|
|
Bite 95. Subclass the dict built-in
|
|
In this Bite you will subclass the dict built-in to β¦
3.10
classes
inheritance
|
|
Bite 98. Code your way out of a grid
|
|
Given a 2D grid of equal length x and y, β¦
3.10
looping
namedtuple
numbers
tuple unpacking
|
|
Intro Bite 01. F-strings and a simple if/else
|
|
Welcome to our Intro Bites, it's time to gauge where β¦
3.10
freebie
f-strings
if/else
|
|
Intro Bite 02. Infinite loop, input, continue and break
|
|
In this Bite we'll get you to take user input β¦
3.10
break
continue
freebie
input
mock.patch
while
|
|
Bite 119. Xmas tree generator
|
|
In this Bite you complete generate_xmas_tree that takes a rows β¦
3.10
default args
join
range
string formatting
|
|
Bite 138. OOP fun at the Zoo
|
|
Finish the Animal class below adding one or more class β¦
3.10
classes
classmethod
itertools
__str__
|
|
Bite 148. print Car Data Grouped by Manufacturer
|
|
In this Bite you are presented with a list of β¦
3.10
data structures
itertools
operator
sorting
|
|
Bite 171. Make a terminal spinner animation
|
|
In this Bite you will spice up your command line β¦
3.10
command line
itertools
stdout
sys
time
|
|
Bite 172. Having fun with Python Partials
|
|
Meet another gem in the standard library: functools, which contains β¦
3.10
functools
partial
rounding
|
|
Bite 176. Create a variable length chessboard
|
|
In this Bite you are going to print a chessboard β¦
3.10
modulo
range
stdout
|
|
Bite 200. π₯³ Minecraft Enchantable Items
|
|
My kids love Minecraft and they always want me to β¦
3.10
beautifulsoup
web scraping
|
|
Newbie Bite 05. Basic Maths
|
|
We're able to print integers. Now what? Yep, it's time β¦
3.10
math
newbie
|
|
Bite 229. Scrape best programming books
|
|
For this bite, you are going to scrape the books β¦
3.10
beautifulsoup
books
classes
data cleaning
data wrangling
sorting
web scraping
|
|
Bite 246. Test print / standard output
|
|
In this Bite you test a function that prints to β¦
3.7
capfd
capsys
list comprehensions
pytest
stdout
|
|
Bite 323. Iterables intersection
|
|
In this bite we are going to work on coding β¦
3.10
functools
set operations
|
|
Bite 326. Abstract Syntax Tree (AST) printer
|
|
In this Bite we familiarise with Abstract Syntax Trees (ASTs). β¦
3.10
AST
|
|
Bite 367. Add Pi Day to the calendar
|
|
Python has a brilliant but often overlooked module called calendar. β¦
3.10
calendar
tuple unpacking
|
|