Home
>>> Python Tricks
Notice we are using Python 3! Also, pytest!
Implement a trace module.
(Uses decorator in place of inspect)
Square the elements of a list.
(list comprehension)
Collect the unique elements of a list.
(set comprehension)
Create a word repository.
(dictionary comprehension)
Create a random number generator.
(generator comprehension)
Palindrome example