0
ÂżWhat is the Python version of code playground?
Hi, I'm trying to submit a code and I have a multiple line print with Formatted string literals like: variable = "ant" print(f""" Whoa!, there is an {bug} on the floor. """) I get the following: File "..\Playground\", line 136 """) ^ SyntaxError: invalid syntax But if I do: print(f""" Whoa!, there is an ant on the floor. """) It works. Is it python 3.6? https://docs.python.org/3/whatsnew/3.6.html#new-features
3 Answers
0
Never mind, I just found the answer in stack overflow
import sys
print (sys.version)
Result:
3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)]
0
Thanks!