Lesson 3 - Halloween game

posted Oct 31, 2019, 10:47 AM by Attila Lengyel   [ updated Oct 31, 2019, 10:47 AM ]
print("Halloweeeeeeen is here...tatata")
print("Come in if you dare...
print("Don't be scared...

question = input("Tell me, why are you here?:")

import random
answer = random.randint(0,2)

if question == "trick or treat":
if answer == 0:
print("Boooooooooooooooooooo")
if answer == 0:
print("Here is your candy!")
if answer == 0:
print("Get off my lawn!!!")

if question == "to scare you":
if answer == 0:
print("Roaaaaaaaaarrrr....")
if answer == 0:
print("Here is your candy, don't scare me!")
if answer == 0:
print("The one who should be scared is you... ")
Comments