¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 20 de 24 · Texto

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. 

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?