python - Import success however SyntaxError: invalid syntax error even for simple function -
this question has answer here:
- syntax error on print python 3 [duplicate] 10 answers
import success syntaxerror: invalid syntax error simple function
i trying library
this simplest sample
from yahoo_finance import share yahoo = share('yhoo') print yahoo.get_open()
shows error this.
file "yahoofinancetest.py", line 3 print yahoo.get_open() ^ syntaxerror: invalid syntax
it's simple clue solving
where should check??
if python 3, print function try:
print(yahoo.get_open())
Comments
Post a Comment