DDos-Attack icon indicating copy to clipboard operation
DDos-Attack copied to clipboard

SyntaxError

Open Darkhnes opened this issue 4 years ago • 3 comments

File "DDos.py", line 21 print color.green + """ ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(color.green + """)?

When i run this in Ubuntu 20.04.2 LTS i get this error message. The command i typed was: python3 DDos.py

Darkhnes avatar Jun 10 '21 09:06 Darkhnes

Apparently, programmer wrote this code in python 2 syntax. Try using

python2 <filename.py>

You need to install Python 2 from its website first!

ProfTahseen avatar Aug 12 '21 08:08 ProfTahseen

Yep


mrprogrammer2938 avatar Feb 21 '22 08:02 mrprogrammer2938

Fix

You can run the program with python3

mrprogrammer2938 avatar Feb 21 '22 08:02 mrprogrammer2938