Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import sys
- import os
- import random
- import time
- name = input('Hello. What\'s your name? ')
- print('Hi, '+ name +' it\'s nice to meet you... My name is PyBot, you can call me Pie for short!')
- print('')
- time.sleep(2)
- food = input('What\'s your favorite food? ')
- if any( x in food for x in ( "pizza", "Pizza")):
- print('My creators favorite food is pizza too! I\'m a computer so I don\'t have tastebuds.')
- print('')
- else:
- print('Yum! '+food+', that sounds delicious! I love pizza! Actually, my creator likes pizza. I don\'t have tastebuds.')
- print('')
- time.sleep(3)
- age = input('How old are you? ')
- print('You\'re '+str (age)+'? Well, I\'m a computer and computers don\'t age.')
- print('')
- time.sleep(2)
- location = input('Where do you live? ')
- print('Cool! I hear that '+location+' is awesome!')
- print('')
- time.sleep(1)
- answer = input('Do you want to see what I look like? ')
- if any( x in answer for x in ( "no", "No" )):
- print('FINE')
- time.sleep(1)
- print('GOODBYE THEN!')
- else:
- print('Here I am!')
- time.sleep(1)
- print('____________')
- print('| * * |')
- print('| |')
- print('|\________/|')
- print('| |')
- print('|__________|')
- print('')
- time.sleep(1)
- print('GOODBYE!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement