O GoConqr está de visual novo! Conte para nós o que você achou.

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. 

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?