Computer Science, asked by Anonymous, 1 year ago

I need help in python .....wap that take a number from user and check it for greater or smaller or even or odd
and coding for if you are eligible to vote or not

Answers

Answered by Anonymous
2
take any number  two number and store it "n" and "x"
n=input("enter a number ")
x=input("enter another number ")
if n>x
print n 
else :
print x
            

and for even and odd 
let just take these number only
n=input("number")
if n %2==0
print "even"
else 
print "odd"




for elegibility of vote
age=input("to check if eligible to vote or not ")
if age>18:
print "not eligible"
else:
print eligible



 


Anonymous: y this ans is reported it is correct
Similar questions