Question Answering using python if-else
# Question Ans using if else
name = input (" Can you please tell me who are you \n " )
print ("Hey welcome " + name + "\n")
ans = input("Could you please tell me more about you Enter :yes/no \n")
if ans == "yes":
age = input("Tell me your age:\n")
int_age = int(age)
if int_age <= 30:
print("Don't lie" + name + "\n")
else:
print("Get Married , You are " + age + "\n")
else:
print("Get lost if you don't want to tell anything")
0 comments:
Post a Comment