How does monty_python=python**2 print to 1.522756?


#1

i typed in this:
monty_python=python**2
print monty_python

and got this as a result in my print window: 1.522756

how can python squared equal a number?


#2

One way would be to set python to 1.234, otherwise python is undefined.

python = 1.234
print python ** 2    # 1.522756

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.