singh47 / website-autovisitor

A python script to visit websites automatically by using random web addresses and browser strings.
9 stars 16 forks source link

print self.con_total,"total connections, success = ",self.con_sucess," failed= ",self.con_failed ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(self.con_total,"total connections, success = ",self.con_sucess," failed= ",self.con_failed)? #3

Closed arjboy closed 2 years ago

arjboy commented 3 years ago
print self.con_total,"total connections, success = ",self.con_sucess," failed= ",self.con_failed
      ^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(self.con_total,"total connections, success = ",self.con_sucess," failed= ",self.con_failed)?

hustle-coin commented 2 years ago

it gives you the answer right there, print(self.con_total,"total connections, success = ",self.con_sucess," failed= ",self.con_failed)

singh47 commented 2 years ago

Thanks @hustle-coin , @arjboy this code is compatible with python2.7 from the issue above; it seems that you are trying it with python3, as the print statement needs parenthesis in Python 3.

e.g:

print("Hello") # syntax for python3 print "Hello" # syntax for python2