Tuesday, May 24, 2022

Check user is eligible for voting in python

 




print("Check user is eligible for voting")

x = int(input("enter your age - "))

if x < 18:

  print(" sorry you'r under 18 ")

else:

  print("you are eligable for voting..")


output




  

No comments:

Post a Comment