The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #772
print(8/4/2, 8/(4/2))
8/4/2, 8/(4/2) is evaluated as: 2/2, 8/2 which gives 1.0, 4.0 . If no brackets are present, the first operator (in this case / ) will take precedence over the next ones. (programiz.com/python-programming/precedence-associativity)
Question difficulty: 🔵🔵🔵🔵🔵