if lives == 0:
exit()
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 answer