Formatted strings | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Formatted strings

I am using my Python IDLE and when I try to use formatted strings (f” “) it says invalid syntax. Is there any way this can be fixed? Thanks!

5th May 2019, 1:49 AM
Joshua S.
Joshua S. - avatar
1 Answer
+ 4
What version of Python is your IDE running? f-strings are available in Python 3.6+
5th May 2019, 3:47 AM
Diego
Diego - avatar