SHARE
TWEET

Untitled

a guest Oct 16th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #1.1.1
  2.  
  3. x=12
  4. if x>=18:
  5.   print (‘Adulte')
  6.  
  7.  
  8. #1.1.2
  9.  
  10. x=17
  11. if x>=18:
  12.   print ('Adulte')
  13. else:
  14.   print (‘Enfant’)
  15.  
  16.  
  17. #1.1.3
  18.  
  19. x=17
  20. if x>=18:
  21.   print ('Adulte')
  22. elif x<18 and x>12:
  23.     print ('Ado')
  24. else:
  25.   print (‘Enfant')
  26.  
  27.  
  28. #1.1.4
  29.  
  30. x=14
  31. if x>=18:
  32.   print ('Adulte')
  33. elif x<18 and x>12:
  34.   print ()
  35. else:
  36.   print (‘Enfant')
  37.  
  38.  
  39. #1.1.5
  40.  
  41. x=20
  42. if x>=18:
  43.   print ()
  44. elif x<18 and x>12:
  45.   print ('Ado')
  46. else:
  47.   print ()
  48.  
  49.  
  50. #1.1.6
  51.  
  52. x=152
  53. if x>=18 and x<150:
  54.   print ()
  55. elif x<18 and x>12:
  56.   print ('Ado')
  57. elif x<=0 or x>150:
  58.   print ('Inhumain')
  59. else:
  60.   print()
  61.  
  62.  
  63. #1.1.7
  64.  
  65. y=32
  66. tab=[1,2,3,4]
  67. print (tab)
  68. tab.append(y)
  69. print (tab)
  70.  
  71.  
  72. #1.1.8
  73.  
  74. dico={'taille':'183',
  75.      'sexe':'masculin',
  76.      'nom':'musy'}
  77. print (dico)
  78. dico['Age']="20"
  79. print (dico)
  80.  
  81.  
  82. #1.1.9
  83.  
  84. x=13
  85. If x%2==0:
  86.   print(‘Paire’)
  87. else:
  88.   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