Why doesn't Python use ^ to denote squaring a number but uses ** instead? -
a few languages i've seen utilise ^ symbol, , doesn't seem reserved in python. sort of confuses me since ^ symbol (very) known , python supposed easy use, not case in using **.
is there logical explanation this? mean it's not huge difference, curious choice?
as guido says "python’s first , foremost influence abc, language designed in 1980s lambert meertens, leo geurts , others @ cwi.". x raised power y implemented x**y in abc. abc influenced setl & algol 68.
Comments
Post a Comment