Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. from yahoo_finance import Share
  2. _input=input()
  3. print (type(_input))
  4. yahoo = Share(_input)
  5. print yahoo.get_name()
  6. print yahoo.get_open()
  7. print (yahoo.get_price()+yahoo.get_currency())
  8. print yahoo.get_trade_datetime()
  9.  
  10. Error
  11.  
  12. /usr/bin/python2.7 /home/marcel/PycharmProjects/YahooFinanceScirpt/Main.py
  13. JPM
  14. Traceback (most recent call last):
  15.   File "/home/marcel/PycharmProjects/YahooFinanceScirpt/Main.py", line 2, in <module>
  16.     _input=input()
  17.   File "<string>", line 1, in <module>
  18. NameError: name 'JPM' is not defined
  19.  
  20. Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement