Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. while True:
  2. ent = input('{} {} '.format(name,prompt[1])).split()
  3. # algorithme
  4. nbtotal = ent[:]
  5. for nbtotal in ent:
  6. if nbtotal == 'heure':
  7. print(time)
  8. if nbtotal == 'date':
  9. print(date)
  10. if nbtotal == 'ip':
  11. print(ip)
  12. if nbtotal == 'meteo':
  13. for nbtotal in ville:
  14. town = nbtotal[:]
  15. print('la meteo de {}'.format(town))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement