Hello, I am stuck on the part 4 of this exercise, it fails when the arguments are (true, false, false).
def win(has_eaten_all_dots, power_pellet_active, touching_ghost):
playerWon = False
if has_eaten_all_dots == True and power_pellet_active == True an touching_ghost == True:
playerWon = True
else:
playerWon = False
return playerWon
IsaacG
2
You can use a codeblock to make the code readable ;)
- What is the error?
- Do you understand what the test is doing?
- Do you understand what the test is expecting and why?
- Do you understand what your code returns and how it differs?
- Do you understand why your code is returning what it returns?
Thanks, the questions helped a lot . I solved it