Python---Email-Bomber icon indicating copy to clipboard operation
Python---Email-Bomber copied to clipboard

Invalid syntax in line 54

Open FaisalAhmed123 opened this issue 4 years ago • 5 comments

faisal071@HP-EliteBook-2540p:~/Python---Email-Bomber$ python Email_Bomber.py File "Email_Bomber.py", line 54 print(f'ERROR: {e}') ^ SyntaxError: invalid syntax image

FaisalAhmed123 avatar Dec 22 '20 20:12 FaisalAhmed123

Try to use Python3 instead of Python

c4f3firstt avatar Dec 27 '20 21:12 c4f3firstt

Try to use Python3 instead of Python

Even with Python 3, I still get errors, something to do with the ' instead if ". I think that managed to fix it on python 3, along with a few other minor changes. Just posted it on Github so it can be fixed rather then people having to fix it them selves

FaisalAhmed123 avatar Dec 27 '20 21:12 FaisalAhmed123

I will make a pull request changing the README so it will be easier for people

c4f3firstt avatar Dec 27 '20 21:12 c4f3firstt

I did the Pull request, now its up to the dev to approve it now

c4f3firstt avatar Dec 27 '20 21:12 c4f3firstt

F-strings are supported from python 3.6 or later. So upgrading to the latest python version should do the trick

frederikme avatar Apr 25 '21 18:04 frederikme