You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding an exponentiation operator, like ** in python, would make code more readable and faster to type. The way it works right now, it's easier to type x * x * x (5 characters) instead of pow(x, 3) (8 characters).
Also, it makes more sense to use an operator rather than a function, since we usually use infinix notation with exponentiation, as well as addition, subtraction, multiplication and division (we write a + b, a * b, a ^ b instead of sum(a, b), product(a, b), pow(a, b)).
The text was updated successfully, but these errors were encountered:
Adding an exponentiation operator, like
**
in python, would make code more readable and faster to type. The way it works right now, it's easier to typex * x * x
(5 characters) instead ofpow(x, 3)
(8 characters).Also, it makes more sense to use an operator rather than a function, since we usually use infinix notation with exponentiation, as well as addition, subtraction, multiplication and division (we write a + b, a * b, a ^ b instead of sum(a, b), product(a, b), pow(a, b)).
The text was updated successfully, but these errors were encountered: