158k views
1 vote
So i'm trying to figure out why this code wont run can anyone help me

import sys

import random


ans = True


while ans:

questions = raw_input("type a question here (press enter to quit)")

answers = random.randint(1,2)


if questions == "":

sys.exit()


eilf answers == 1:

print "yes"

continue

eilf answers == 2:

print "no"


I have indented it as well

1 Answer

6 votes

Answer:

use the opening and closing tags

[Tex] [\tex] ok

User Rushi
by
5.1k points