Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #1.1.1
  2.  
  3. x = input('age?')
  4.  
  5. x= int(x)
  6.  
  7. if x >= 18:
  8. print('adulte')
  9. else:
  10. print ('you don’t have access')
  11.  
  12. #1.1.2
  13.  
  14. x = input('age?')
  15.  
  16. x= int(x)
  17.  
  18. if age >= 18:
  19. print('adulte')
  20. else:
  21. print ('enfant')
  22.  
  23. #1.1.3
  24.  
  25. x = input('age?')
  26.  
  27. x= int(x)
  28.  
  29. if x >= 18:
  30. print('adulte')
  31. elif 12 < x < 18:
  32. print('ado')
  33. else:
  34. print('enfant')
  35.  
  36. #1.1.4
  37.  
  38. x = input('age?')
  39.  
  40. x= int(x)
  41.  
  42. if x >= 18:
  43. print('adulte')
  44. elif 12 < x < 18:
  45. print(β€˜')
  46. else:
  47. print('enfant')
  48.  
  49. #1.1.5
  50.  
  51. x = input('age?')
  52. x=int(x)
  53.  
  54. if 18>x>12:
  55. print('ado')
  56. else:
  57. print('')
  58.  
  59. #1.1.6
  60.  
  61. x = input('age?')
  62.  
  63. x= int(x)
  64.  
  65. if x < 0:
  66. print('inhumain')
  67. elif x > 150 :
  68. print('inhumain')
  69. else:
  70. print('ado')
  71.  
  72. #1.1.7
  73.  
  74. y = 55
  75.  
  76. tab=[3,4,5,6,7,8,9,2,1]
  77.  
  78. tab.append(y)
  79.  
  80. print (tab)
  81.  
  82. #1.1.8
  83.  
  84. dico={"nom":"Theo"}
  85. dico["age"]= "20"
  86. print(dico)
  87. #1.1.9
  88.  
  89. x = input('nombre')
  90. x= int(x)
  91.  
  92. if x%2 == 0:
  93. print('pair')
  94. else:
  95. print('impair')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement