length (if len(somelist) == 0). Use if not somelist and assume empty values implicitly evaluate to False.
The statement if somelist is implicitly True for non-empty values.
standard library modules, third-party modules, your own modules. Each subsection should have imports in alphabetical order.
two types that represent sequences of characters: bytes and str.
To convert Unicode characters to binary data, you must use the encode method. To convert binary data to Unicode characters, you must use the decode method.
Share This Book 📚
Ready to highlight and find good content?
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.