Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- ent = input('{} {} '.format(name,prompt[1])).split()
- # algorithme
- nbtotal = ent[:]
- for nbtotal in ent:
- if nbtotal == 'heure':
- print(time)
- if nbtotal == 'date':
- print(date)
- if nbtotal == 'ip':
- print(ip)
- if nbtotal == 'meteo':
- for nbtotal in ville:
- town = nbtotal[:]
- print('la meteo de {}'.format(town))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement