SHARE
TWEET

Untitled

a guest Oct 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #1.1.1
  2. x=int(input("Quel est votre âge?"))
  3. if x>=18:
  4.     print("Adulte")
  5.  
  6. #1.1.2
  7. x=int(input("Quel est votre âge?"))
  8. if x>=18:
  9.     print("Adulte")
  10. else:
  11.     print("Enfant")
  12.  
  13. #1.1.3
  14. x=int(input("Quel est votre âge?"))
  15. if x>=18:
  16.     print("Adulte")
  17. elif x>12:
  18.     print("Ado")
  19. else:
  20.     print("Enfant")
  21.  
  22. #1.1.4
  23. x=int(input("Quel est votre âge?"))
  24. if x>=18:
  25.     print("Adulte")
  26. elif x<12:
  27.     print("Enfant")
  28.  
  29.  
  30. #1.1.5
  31. x=int(input("Quel est votre âge?"))
  32. if x<18 and x> 12:
  33.     print("Ado")
  34.  
  35. #1.1.6
  36. x=int(input("Quel est votre âge?"))
  37. if x<=0 or x>150:
  38.     print ("Inhumain")
  39. elif x<18 and x>12:
  40.     print("Ado")
  41.  
  42. #1.1.7
  43. tab=["a","ab","abc"]
  44. y="abcd"
  45. tab.append(y)
  46. print(tab)
  47.  
  48. #1.1.8
  49. dico={"fleur":"nature","arbre":"feuille"}
  50. dico["age"]="20"
  51. print(dico)
  52.  
  53. #1.1.9
  54. x=int(input("Donnez un nombre "))
  55. if x%2==0:
  56.     print ("Pair")
  57. else:
  58.     print("Impair")
  59.  
  60. #1.1.9
  61. x=int(input("Donnez un nombre "))
  62. if x%2==0:
  63.     print ("Paire")
  64. else:
  65.     print("Impaire")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top