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:
- 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<=0 or x>150:
- print ("Inhumain")
- elif x<18 and x>12:
- print("Ado")
- #1.1.7
- tab=["a","ab","abc"]
- y="abcd"
- tab.append(y)
- print(tab)
- #1.1.8
- dico={"fleur":"nature","arbre":"feuille"}
- dico["age"]="20"
- print(dico)
- #1.1.9
- x=int(input("Donnez un nombre "))
- if x%2==0:
- print ("Pair")
- else:
- print("Impair")
- #1.1.9
- x=int(input("Donnez un nombre "))
- if x%2==0:
- print ("Paire")
- else:
- print("Impaire")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement