Advertisement
Finessed

PyBot

Jul 12th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.28 KB | None | 0 0
  1. #!/usr/bin/python
  2. import sys
  3. import os
  4. import random
  5. import time
  6.  
  7. name = input('Hello. What\'s your name? ')
  8. print('Hi, '+ name +' it\'s nice to meet you... My name is PyBot, you can call me Pie for short!')
  9. print('')
  10.  
  11. time.sleep(2)
  12. food = input('What\'s your favorite food? ')
  13. if any( x in food for x in ( "pizza", "Pizza")):
  14.     print('My creators favorite food is pizza too! I\'m a computer so I don\'t have tastebuds.')
  15.     print('')
  16. else:
  17.     print('Yum! '+food+', that sounds delicious! I love pizza! Actually, my creator likes pizza. I don\'t have tastebuds.')
  18.     print('')
  19.  
  20. time.sleep(3)
  21. age = input('How old are you? ')
  22. print('You\'re '+str (age)+'? Well, I\'m a computer and computers don\'t age.')
  23. print('')
  24.  
  25. time.sleep(2)
  26. location = input('Where do you live? ')
  27. print('Cool! I hear that '+location+' is awesome!')
  28. print('')
  29. time.sleep(1)
  30. answer = input('Do you want to see what I look like? ')
  31.  
  32. if any( x in answer for x in ( "no", "No" )):
  33.     print('FINE')
  34.     time.sleep(1)
  35.     print('GOODBYE THEN!')
  36. else:
  37.     print('Here I am!')
  38.     time.sleep(1)
  39.     print('____________')
  40.     print('|  *    *  |')
  41.     print('|          |')
  42.     print('|\________/|')
  43.     print('|          |')
  44.     print('|__________|')
  45.     print('')
  46.     time.sleep(1)
  47.     print('GOODBYE!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement