HTML
PythonCoder100 (5)

In HTML, how do you add an interactive text box?

You are viewing a single comment. View All
Answered by timmy_i_chen (1117) [earned 5 cycles]
View Answer
PythonCoder100 (5)

@timmy_i_chen ok thanks, and I tried to do a "else" command, but it would not work. Here is the code.

print ("Hello! This is a Fortnite game. You have to choose what to do in certain situations.")
print("Alright. Lets get started.")
var1= raw_input ("What is your name?")
print ("Ok. Hi "+ var1)
var2= raw_input ("Where will you land? Paradise Palms, Fatal Fields, Risky Reels, or Flush Factory? ")
print ("Ok. You landed at"+ var2)
ok= raw_input ("You found a blue tactical shotgun. The problem is, there is a Skull Trooper in front of you trying to get the same gun. Will you run away or go for the gun?")
if "ok"== "go for the gun":
print ("Your common sense overruled your choice. You ran away.")
else
print ("You ran away. Good choice.")