8
Plover Brown
https://rebgrasshopper.github.io/portfolio
Last seen 1 year ago
Member for 4 years, 8 months, 10 days
Difficulty Normal
I'm a web developer and dabbler in python.
Commented a forum post "Difference between s and data[s]" created by
rebgrasshopper
Thank you. I didn't really know anything about dict, but I also just read about it this morning. So
Liked
a comment created by genadiik
for
forum post "Difference between s and data[s]"
The function argument **data** is a dict. Iterating over a dict (_for s in data_ in your code) mean
Created a forum post "Difference between s and data[s]"
So here is the code:
def best_stock(data):
max_price = 0
answer = ""
for s in data: