I am currently trying to create a keylogger program in python and I am trying to use f-strings as a way of formatting. Whenever I run my program I get the following syntax error. I have never worked with f-strings before so any input would be of great help! Error Message
Asked
Active
Viewed 31 times
0
-
7You're running a Python version that doesn't *have* f-strings. – user2357112 Jun 22 '21 at 22:19
-
2Also, in the example you've provided, there is no need for using an f-string. – tidakdiinginkan Jun 22 '21 at 22:25
-
As @user2357112supportsMonica said, the version of Python you use doesn't seem to support f-strings. If you're sure that you use Python 3.6 and above, just get rid of the f-string and replace it with `name.upper()`. It doesn't seem like you need it. (I got sniped) – J minding Jun 22 '21 at 22:26
-
That worked, thanks everyone for the input! – Matt Willis Jun 23 '21 at 22:39