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

7th May 2018, 3:26 AM
LeoUSp
LeoUSp - avatar
2 odpowiedzi
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)]
7th May 2018, 3:27 AM
LeoUSp
LeoUSp - avatar
0
Thanks!
7th May 2018, 3:35 AM
LeoUSp
LeoUSp - avatar