0

I am confused of the operator to use in this python code, I've tired AND, OR, COMMA can someone help with what the answer is??

A piece of code for a videogame checks if the player has completed the level. The level is completed if the player collected more than 30 coins or found at least 1 magic key. Complete the code to check if the player completed the level coins = 36 keys = 2 print(coins > 30 OR keys > 0)

3rd Sep 2024, 7:12 PM
kennedy imoni
kennedy imoni - avatar
3 Réponses
+ 4
Read the previous lesson again. Pay attention to the spelling of the or operator.
3rd Sep 2024, 7:25 PM
Lisa
Lisa - avatar
+ 1
Always remember that python is a case-sensitive coding language.
4th Sep 2024, 11:35 AM
Ruben