Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from yahoo_finance import Share
- _input=input()
- print (type(_input))
- yahoo = Share(_input)
- print yahoo.get_name()
- print yahoo.get_open()
- print (yahoo.get_price()+yahoo.get_currency())
- print yahoo.get_trade_datetime()
- Error
- /usr/bin/python2.7 /home/marcel/PycharmProjects/YahooFinanceScirpt/Main.py
- JPM
- Traceback (most recent call last):
- File "/home/marcel/PycharmProjects/YahooFinanceScirpt/Main.py", line 2, in <module>
- _input=input()
- File "<string>", line 1, in <module>
- NameError: name 'JPM' is not defined
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement