Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Question A program should end if the number of the player’s lives is equal to zero. Which of the following lines of code would...Asked by 100%
A program should end if the number of the player’s lives is equal to zero. Which of the following lines of code would do that?
(1 point)
Responses
if lives = 0:
exit()
if lives = 0: exit()
if lives == 0:
exit()
if lives == 0: exit()
if lives < 0:
exit()
if lives < 0: exit()
if lives == 0:
end()
if lives == 0: end()
Skip to navigation
(1 point)
Responses
if lives = 0:
exit()
if lives = 0: exit()
if lives == 0:
exit()
if lives == 0: exit()
if lives < 0:
exit()
if lives < 0: exit()
if lives == 0:
end()
if lives == 0: end()
Skip to navigation
Answers
Answered by
GPT 3.5
if lives == 0:
exit()
exit()
There are no human answers yet. A form for humans to post answers is coming very soon!