Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hackers Night Python
- Project 1
- #1.1.1
- if x >= 18:
- print("Adulte")
- #1.1.2
- if x >= 18:
- print("Adulte")
- else:
- print("Enfant")
- #1.1.3
- if x >= 18:
- print("Adulte")
- elif x>12:
- print ("Ado")
- else:
- print("Enfant")
- #1.1.4
- if x >= 18:
- print("Adulte")
- elif x>12:
- print ("")
- else:
- print("Enfant")
- #1.1.5
- if x >= 18:
- print()
- elif x>12:
- print ("Ado")
- else:
- print()
- #1.1.6
- if x<=0 or x>150:
- print("Inhumain")
- elif x >= 18:
- print()
- elif x>12:
- print ("Ado")
- else:
- print()
- #1.1.7
- tab=[1,2,3]
- y=4
- if len(tab)<=10:
- tab.append(y)
- #1.1.8
- if "age" not in dico:
- dico["age"]=20
- #1.1.9
- if x%2==0:
- print ("Paire")
- else:
- print("Impaire")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement