Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1.1.1
- x = int(input ("Quel est votre âge ?"))
- if x >=18 :
- print("Adulte")
- #1.1.2
- x = int(input ("Quel est votre âge ?"))
- if x >=18 :
- print("Adulte")
- else :
- print("Enfant")
- #1.1.3
- x = int(input ("Quel est votre âge ?"))
- if x >=18 :
- print("Adulte")
- elif x> 12 and x<18 :
- print("Ado")
- else :
- print("Enfant")
- #1.1.4
- x = int(input ("Quel est votre âge ?"))
- if x >=18 :
- print("Adulte")
- elif x <= 12:
- print ("Enfant")
- #1.1.5
- x = int(input ("Quel est votre âge ?"))
- if x <18 and x>12 :
- print("Ado")
- #1.1.6
- x = int(input ("Quel est votre âge ?"))
- if x <18 and x>12 :
- print("Ado")
- elif x <=0 or x>150 :
- print("Inhumain")
- #1.1.7
- tab=["pomme","cerise","framboise","fraise","kiwi"]
- print(tab)
- y="poire"
- tab.append(y)
- print(tab)
- #1.1.8
- dico={
- "nom":"Renouf",
- "prénom":"Elea",
- "naissance":"Cherbourg"
- }
- if "age" not in dico :
- dico["age"]="20"
- print(dico)
- #1.1.9
- x=int(input("Veuillez choisir un nombre ! "))
- if x%2==0:
- print("Paire")
- else :
- print ("Impaire")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement