0

For a week now I have noticed this in my account on different notebooks. the situation with the syntax. Python stopped seeing f-lines. And the print function began to display everything in brackets for some reason. enter image description here

enter image description here

2 Answers2

0

You could actually narrow this code down to:

>>> print(f'{x=}')
x=5
>>> 
U13-Forward
  • 69,221
  • 14
  • 89
  • 114
0

The reason it doesn't work is because you are using Python 2. F-strings were added in Python 3.6, as you can see here or in this answer, so they don't work in any older version of Python.

Unnamed
  • 3
  • 4