re: Python for JavaScript Developers VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Nice article. I'm also JavaScript developer, that has to write Python code. One difference that is really surprising (and some time annoying) is la...
 

Wat? First, why do you call print a method? It is a function. Second, it doesn't "expect" a string, it will take whatever you give to it (its signature starts with *args). And third, of course print(1) works, in every Python I know. What exactly did you try to write and what happened?

code of conduct - report abuse