check whether number is even or odd

#check wheather a is odd or even
'''interactive mode
>>> 10%2
0....................False #(False==0)
>>> 5%2
1....................True  #(True==1)'''
#scriptive mode
a=int(input('enter:'))
if a%2:
    print("its odd")#solution gives true if 'a' value is even
else:
    print("its even")#solution gives false if 'a' value is odd 
print('hope it helped')
#output
#False
enter:100
its even
hope it helped
#even
enter:101
its odd
hope it helped

Here is what the above code is Doing:
1. It’s asking the user to input a number.
2. It’s storing the number in the variable a.
3. It’s checking if the number is even or odd.
4. It’s printing the result.
5. It’s printing a message to the user.