0

And & or?

I don't understand the, I already lost 4 hearts doing the lessons and then 1 heart trying to skip it! Can someone tell me what the and & or think means with the "trues" and the "falses" I lost to many hearts today please help! Also whats the boolean thing?

16th Dec 2024, 2:58 AM
print ("python")
print ("python") - avatar
3 Respostas
+ 3
print ("JUMP_LINK__&&__python__&&__JUMP_LINK") , if you get stuck with this topic, you should re-start the related lessons from the tutorials `introduction to python` or `python developer`. there are also 2 tutorials from the community section that may help: https://www.sololearn.com/learn/o-Python/2279/?ref=app https://www.sololearn.com/learn/o-Python/2276/?ref=app > you should keep going on, give it a try, because understanding this is of fundamental importance for further learning and to understand coding. so please be patient!
16th Dec 2024, 12:13 PM
Lothar
Lothar - avatar
+ 2
They are ways to test multiple conditions. Say you're playing a computer game and you need to collect 100 coins to pass the level when you get to the end of the level. If you get to the end of the level but don't have 100 coins, you have to go back through the level to find more coins, right? That could be written something like this: if (coins >= 100) and (end_level == true): next_level() In the same game, the player wants to progress past some puzzle. This puzzle is solved in 2 ways, with a key OR with a correct combination. They don't need both to solve, just one - this is different from the end level above. That could be written something like this: if (player_has_key == true) or (puzzle_combination == true) puzzle_open() Does that help a bit?
16th Dec 2024, 6:41 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Share the question.
16th Dec 2024, 3:16 AM
Jerry Hobby
Jerry Hobby - avatar