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

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -