Untitled - Posted on February Mon 1st 6:59 AM (Never Expires) - Format: text
  1. import random
  2. import time
  3. list_restaurants=['Island Grill','Green Curry','Sweet Escape','Bangalore Spices','Pancake World','Gordon Ramsay']
  4. print('!!!welcome to use LIBERA app!!!')
  5. time.sleep(1)
  6. def choice1(list_restaurants):
  7.     while True:
  8.         option1 =random.choice(list_restaurants)
  9.         idea= input('are you okay with [%s], if so, input y, if not press enter.'%(option1))
  10.         if idea=='y':
  11.             print('Good Choice, Let\'s go to [%s]!!'%(option1))
  12.             break
  13. list_custom=[]
  14. reason=input('What confused you:\n 1. Donnot know what to eat \n 2. Hard to choose from your own list\nplease input 1 or 2 :')
  15. if reason=='1':
  16.     choice1(list_restaurants)
  17. elif reason=='2':
  18.     while True:
  19.         line = input('please input your restrants, click enter after each name, type"end"when you are done :)');
  20.         if line =='end':
  21.             break
  22.         list_custom.append(line)
  23.         option2=random.choice(list_custom)
  24.         print('we think [%s] is a good choice!'%(option2))
  25.         time.sleep(1)
  26.         print('see you next time!')
  27.         break
  28.  
  29. else:
  30.     print ('Sorry we only provide 2 options so far, please make choice between 1 nad 2!')

New Paste

Paste Options

Recent Pastes

9 days ago

EARN PAYPAL IN A

10 days ago

QUICK CASH VIA

10 days ago

ATM cloned cards

10 days ago

ATM cloned cards

10 days ago

ATM cloned cards

10 days ago

ATM cloned cards

16 days ago

A MONEY MAKING B

16 days ago

A MONEY MAKING B

16 days ago

A MONEY MAKING B

16 days ago

A MONEY MAKING B