-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
name=input("what's your name").strip().capitalize()
Email=input("what's your Email")
username=Email[ :Email.index("@")]
websit=Email[Email.index("@") +1 :]
print(f"Hello {name} your Email is{Email}")
print(f"your user name is {username}")
print(f"your websit is {websit}")
age=int(input("what's' is your age"))
print(f"your age is{age}")
months=age12
weeks=months4
days=weeks24
hours=days365
mintes=hours60
seconds=mintes60
print("you lived for: ")
print(f"{months} months.")
print(f"{weeks} weeks.")
print(f"{days} days.")
print(f"{hours:,} hours.")
print("#" *50)
age = input("What is your age? ").swapcase( )
age=int(age)
unit = input("Choose your unit :month, week, days ")
age = int(age)
months = age * 12
weeks = age * 52
days = age * 365
if unit == 'month' or unit == 'm':
print("You chose months.")
print(f"You lived for {months} months.")
elif unit == 'weeks' or unit == 'w':
print("You chose weeks.")
print(f"You lived for {weeks} weeks.")
elif unit == 'days' or unit == 'd':
print("You chose days.")
print(f"You lived for {days} days.")
canutresone=("sudan","Egypt")
sg=80
canutrestwo=("Italy", "USA")
sd=30
studnt="NO"
mycanutry="sudan"
if mycanutry in canutresone:
print("beacuse your are choose ")
print(f"beacuse you are form {mycanutry} you have praice $80")
if studnt=="yes":
print("beacuse you are studnt ")
print("you have discaunt : $90")
elif mycanutry in canutrestwo:
print("injoy about praice")
print(f"beacuse you form {mycanutry} you have praice to $30")