python - Import success however SyntaxError: invalid syntax error even for simple function -


this question has answer here:

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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -