Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1.1.1
- x=input('donne moi un chiffre')
- if x >= '18':
- print(‘adulte')
- #1.1.2
- x=input('donne moi un chiffre')
- if x >= '18':
- print(‘adulte')
- else:
- print(‘enfant')
- #1.1.3
- x=input('donne moi un chiffre')
- if x >= '18':
- print('adulte')
- if x < '18' and x > '12':
- print('ado')
- else:
- print('enfant')
- #1.1.4
- x=input('donne moi un chiffre')
- if x >= '18':
- print('adulte')
- if x < ’18' and x > '12':
- print('')
- else:
- print('enfant')
- #1.1.5
- x=input('donne moi un chiffre')
- if x >= '18':
- print('')
- if x < ’18' and x > '12':
- print('ado')
- else:
- print('')
- #1.1.6
- x=input('donne moi un chiffre')
- if x < '0' or x > '150':
- print('inhumain')
- if x >= '18':
- print('')
- if x < '18' and x > '12':
- print('ado')
- else:
- print('')
- #1.1.7
- y = 100
- tab=[1,2,3,4,5,6,7,8,9,10]
- tab.append(y)
- print (tab)
- #1.1.8
- dict={"pays":"france"}
- dict["age"]= "20"
- print(dict)
- #1.1.9
- y=802
- if y%2 == 0:
- print ('pair')
- else:
- print ('impair')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement