isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

*= producing error #152

Closed iAmMortos closed 9 years ago

iAmMortos commented 9 years ago

Following your documentation, I ran the code, K1FNr1hQ*=KN;K which is supposed to print the factorial of the user's input. This produces the error: Traceback (most recent call last): File "pyth.py", line 636, in <module> File "<string>", line 6, in <module> TypeError: times() missing 1 required positional argument: 'b'

The given example K1FNr1hQ=K*KN;K works perfectly, but condensing the =K*KN to *=KN throws an error.

refi64 commented 9 years ago

Try =*KN.

isaacg1 commented 9 years ago

A while ago, we switched from the *= format to the =* format. I'll update the docs.

iAmMortos commented 9 years ago

Jolly good. Thanks