Knowledge organisersMaintainable Code
Improve messy examples.
Tidy code uses meaningful names, consistent indentation, and helpful comments. You should be able to read messy code and rewrite it following best practices without changing its behaviour.
# MESSY
x=int(input())
if x>10:
print("big")
# TIDY
user_number = int(input("Enter a number: "))
if user_number > 10:
print("That number is big")