No installations needed! Write Python directly in your browser and get instant feedback with our smart validation system.
Determine whether a number is even or odd.
You are given a variable
Use an if-else statement to check if the number is even or odd.
An even number has no remainder when divided by 2.
Print 'Even' if the number is even, otherwise print 'Odd'.
Output:
Get your code reviewed and validated to understand what you did right and where you can improve.