14552/python-syntax-error-because-of-version-conflicts
I found a python script on the internet and try to run it like this
python py-exmple.py
I get this error:
File "py-exmple.py", line 93 print json.dumps(evaluate(), indent=4) ^ SyntaxError: invalid syntax
I have python installed.
As mentioned in the reply to my question, you are using version 3.6.5.
In python 3.x, you have to add braces for your code.
Change your code to this syntax and it will work.
print( json.dumps(evaluate(), indent=4) )
Look here: print('Block #{} has been added to ...READ MORE
You are missing the closing parenthesis: hashlib.sha256(self.index + ...READ MORE
Solidity does not support returning structs in ...READ MORE
There is a temp solution here. ~/bitcore-explorers/node_modules/bitcore-lib/index.js line 7: bitcore.versionGuard ...READ MORE
There is not a problem in the ...READ MORE
You are facing this error because you ...READ MORE
This should work: #!/usr/bin/env python import getpass import json import requests ...READ MORE
This was a bug. They've fixed it. ...READ MORE
print in python3 is a method not a ...READ MORE
geth does not make the previous version available ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.