sep and end keywords not recognized in print statement
已回答
I'm using Python 3.6.1 with the most recent (as of 6/22/17) version of PyCharm. Neither the sep or end keywords are recognized when running program within PyCharm, but works fine when running from command line. Example:
print (1, 2, 3, 4, 5, sep = '-', end = '$')
请先登录再写评论。
Hi Nbrauner3! Did you get an error executing this line or just a wrong highlighting? Could you please check the project interpreter version in *Settings | Project | Project Interpreter* and inside a *Run Configuration* for this file?
Hi Pavel,
I was getting an error executing the code as well. I appreciate the tip on setting the interpreter at the project level - that fixed it.
Thanks!