# Write your code here
print("Hello world!")
number1 = int(input("Ingresa un número: "))
if number1 % 2 == 0:
print("EVEN")
else:
print("ODD")
The code asks the user for a number, converts it to an integer, and then checks if it is divisible by 2 with no remainder. If true, it prints "EVEN"; otherwise, it prints "ODD". The initial print statement is just a greeting and not needed for the logic.
- The condition `number1 % 2 == 0` correctly identifies even numbers, but think about what happens if the user enters a negative number or zero. Does the logic still work as expected?
- Consider whether the variable name `number1` is descriptive enough. Would a name like `user_number` make the code clearer for someone reading it?