Python Forum
"Use proper inputs to download stock data"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Use proper inputs to download stock data"
#12
I don't think lines like
elif exchange1.lower() or exchange2.lower() or exchange3.lower() or exchange4.lower() or exchange5.lower() is "germany":
do what you expect they do. I would define first
exchanges = [exchange1, exchange2, exchange3, exchange4, exchange5]
and write for example
elif any(e.lower() == 'germany' for e in exchanges):
Reply


Messages In This Thread
RE: "Use proper inputs to download stock data" - by Gribouillis - Jan-28-2018, 09:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Stock market data in LibreOffice Calc Pitone 3 4,529 Jan-14-2021, 04:34 AM
Last Post: DrinkinBeer
Photo How to do a graph in Python? (and proper terminology) jpy 2 2,208 Dec-23-2020, 01:07 PM
Last Post: codeto

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020