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!
print(-2 ** 2)
The ** operator takes precedence over the - operator. As such, Python will calculate 2 ** 2 first (making 4) before applying - to it. (mathcs.emory.edu/~valerie/courses/fall10/155/resources/op...)
Question difficulty: 🔵🔵🔵🔵🔵