even or odd Proggrams
while True:
a = int(input('please enter number: '))
if a % 2==0:
print(f"{a} is your number and {a} is Even ")
else:
print(f"{a} is your number and {a} is Odd ")
drive or can not drive
while True:
a = input("Please input Your Name : ")
print ("your name is :" ,a)
b = int(input('plaese enter your age : '))
print ("your age is : ", b)
if (b>=18):
print (f"{a}, Your age is , {b} and you can drive")
else:
print (f"{a}, Your age is , {b} sorry you can not drive")
No comments:
Post a Comment