Practice code in Python