GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 20 von 24 · Text

Operators and their bindings: exponentiation

David Khieu

Operators and their bindings: exponentiation

Repeat the experiment, but now with exponentiation. 

Use this snippet of code:

print(2 ** 2 ** 3)

The two possible results are: 

  • 2**2 ->4; 4**3->64
  • 2**3->8; 2***->256

run the code. What do you see? 

The result clearly shows that the exponentiation operator uses right-sided binding. 

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck