Using a virtual environment:
Using type hints:
Proper exception handling:
Using Context managers:
Using if __name__ == “main” :
Using comprehension:
Enumerate:
Using zip (itertools):
Proper indentation:
Using else with for & while:
Using the in keyword to check membership in Dictionary keys.
Using the items method when working with dictionaries
Using dict.get() method:
Using the isinstance keyword when doing type equality of objects:
Using is for equality with singleton:
Using the “or”, “and”, “not” keyword
Using generators:
Using functional programming techniques
Using Decorators:
Using the right built-in libraries:
Using correct naming conventions:
Sticking to a style guide:
Using Docstring and comment
Iterable Unpacking:
Using logging instead of print: