
Tech Tutorials Hub
June 19, 2025 at 07:03 PM
🧪 Small Project 5: Even or Odd Checker
💡 Ask the user for a number and print whether it is even or odd.
Code:
num = int(input("Enter a number: "))
if num % 2 == 0:
print("It is even")
else:
print("It is odd")💥 Common Mistakes
Mistake Error
Forgetting colon : SyntaxError
No indentation IndentationError
Mixing tabs/spaces IndentationError
❤️
1