3 ms·
File "<console>", line 2 return f'{fname} {surname} is {age}.' ^ SyntaxError: invalid syntax So this is a subset of Python or something like th
by cutler 8y ago
File "<console>", line 2
return f'{fname} {surname} is {age}.'
^
SyntaxError: invalid syntax
So this is a subset of Python or something like that?
- Nicksil 8y agoI believe this feature was introduced in Python 3.6. This implementation may be 3.6 < Edit: Just checked the site and see it uses PyPy which states -- on their site -- the python version is 3.5.3
- zorkw4rg 8y agoI can't do: a, *b = range(3) which should be 3.5 i think.
- Nicksil 8y agoOther comments in this thread point to the implementation likely being Python 2.x.
- Zopieux 8y agoOr you know, just import sys and print sys.version instead of reverse-engineering it from the syntactic features introduced over time.