subject

So i'm trying to figure out why this code wont run can anyone 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

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:00, lyn94
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, Alexaisokay1
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
image
Computers and Technology, 23.06.2019 18:50, annieleblanc2004
Ais a picture icon that is a direct link to a file or folder
Answers: 1
image
Computers and Technology, 23.06.2019 23:40, lexiecooley
4. what is the reason for including the following code snippet in the header file animal. h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
So i'm trying to figure out why this code wont run can anyone me

import sys

i...

Questions in other subjects:

Konu
Arts, 29.04.2021 23:50
Konu
Mathematics, 29.04.2021 23:50