Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #1.1.1
  2. x=18
  3. if x>=18:
  4. print('Adulte')
  5.  
  6. #1.1.2
  7. if x>=18:
  8. print('Adulte')
  9. else:
  10. print('Enfant')
  11.  
  12. #1.1.3
  13. if x>=18:
  14. print('Adulte')
  15. elif x>12 and x<18:
  16. print('Ado')
  17. else:
  18. print('Enfant')
  19.  
  20. #1.1.4
  21. if x>=18:
  22. print('Adulte')
  23. elif x>12 and x<18:
  24. print(' ')
  25. else:
  26. print('Enfant')
  27.  
  28. #1.1.5
  29. if x>12 and x<18:
  30. print('ado')
  31. else:
  32. print(' ')
  33.  
  34. #1.1.6
  35. if x>12 and x<18:
  36. print('ado')
  37. elif x>150 or x<=0:
  38. print('inhumain')
  39. else:
  40. print(' ')
  41.  
  42.  
  43.  
  44. #1.1.7
  45. tab=[1,2,3,4,5]
  46. y=6
  47. if len(tab)<=10:
  48. tab.append(y)
  49. print(tab)
  50. else:
  51. print(tab)
  52.  
  53.  
  54. #1.1.8
  55. dico ={
  56. 1:'eva',2:'su',3:'LO'
  57. }
  58. print(dico)
  59. if not 'age' in dico:
  60. dico['age']=20
  61. print(dico)
  62.  
  63. #1.1.9
  64. y=int(input('your number'))
  65. if y%2 == 0:
  66. print('pair')
  67. else:
  68. print('impair')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement