Share your repls and programming experiences

← Back to all posts
Madlibs
Sureshbabubabu2 (0)

if state == 0 and intro == "yes" :
freetime = input("What do you do in your freetime?\n ")
state = 1
elif state == 1:
colour = input("What is your favourite colour?\n")
state = 2
elif state == 2:
number = input("enter your favorite colour\n")
state = 3
elif state == 3:
digust = input("Think of something thats disgusting\n")
state = 4
elif state == 4:
Readytime = input("How long do you take to get ready?\n")
state = 5
elif state == 5:
creature = input("Think of a dangerous creature\n")
state = 6
elif state == 6:
vegetable = input("Which vegitable do you dislike the most?\n")
state = 7
elif state == 7:
elem = input("What would you choose water or fire?\n")
state = 8
elif state == 8:
hero = input("If you where a superhero, what would you name yourself?\n")
state = 9
elif state == 9:
print("One day I was trying to " + freetime + " and I heard a loud BOOM! As soon as I turned around to see what it was, I saw a " + colour + "-Fairy,she picked me up and took me to her secret hiding place. She told me she needed a side kick,and so she let me be her side kick! Then we looked out her window and saw " + number + " " + digust + " " + creature + "-monsters coming straight for us! I put on my red suit in " + Readytime + " minute(s) and then I started to use my laser beams to keep the " + creature + "-monsters away! They were shooting me with " + vegetable + "-guns. Finally, " + colour + "-fairy brought the enemy down with her " + elem + "-gun! That was the day I became " + hero + ".")