Puzzles 15 to 18

Examine branching, negative indices, for loop, and functions in Python.

Puzzle 15

What is the output of the following code?

Note: Enter the output you guessed. Then, press the Run button, and your new Elo will be calculated. Don’t forget to save your Elo rating.

Get hands-on with 1200+ tech skills courses.