python bomb

Solutions on MaxInterview for python bomb by the best coders in the world

showing results for - "python bomb"
Emily
13 May 2018
1#Ask victim to type 'Open youtube' or 'Open Python Website
2#dont forget to delete the comment
3#Tell them its a ChatBot
4
5import time
6import webbrowser as web
7
8ans = input('')
9youtube = 'https://youtube.com'
10pythonwebsite = 'https://python.org'
11while(1):
12  if(ans=='What is your name?'):
13  time.sleep(2)
14  print('My name is Athcubes')
15  
16  if(ans=='How is your day?'):
17    print('It is nice going')
18    
19  if(ans=='Open youtube'):
20    web.open(youtube)
21    
22  if(ans=='Open Python Website'):
23    web.open(pythonwebsite)
24# Opens a new tab per second infinitely. Task manager stops responding.
25#PC freezes AND stops responding