Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1.1.1 x = input ("age")
- if x >= "18":
- print ("Adulte")
- else:
- print ("mineur")
- #1.1.2 x = input ("age")
- if x >= "18":
- print ("Adulte")
- else:
- print ("enfant")
- 1.1.3 x = input ("age")
- if x >= "18":
- print ("Adulte")
- elif "18">x>"12":
- print ("ado")
- else:
- print ("enfant")
- #1.1.4 x = input ("age")
- if x >= "18":
- print ("Adulte")
- elif "18">x>"12":
- print (‘’)
- else:
- print ("enfant")
- #1.1.5 x=input("age")
- if "18">x>"12":
- print("Ado")
- #1.1.6 x = -7
- if x<10 and x > 12
- print ("Ado")
- elif x <= 0 or x > 150:
- print ("inhumain")
- #1.1.7 y=333
- tab=[1,11,12,13,16,18,30,33,34,77,39]
- tab.append(y)
- print(tab)
- #1.1.8 dico={"profession": "designer"}
- dico["age"]="20"
- print(dico)
- #1.1.9 x = input("nombre")
- x= int(x)
- if x%2 == 0:
- print("pair")
- else:
- print("impair")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement