avatar Bite 232. Analyze gold prices

In this Bite you will analyze how the price of gold evolved over the years 1950-2018. We loaded the gold prices (per ounce per year) into the template for you (source).

Parse the gold_prices multiline string into a useful data structure and calculate which years the price decreased and increased the most. Return those 2 years as a tuple:

>>> from gold import years_gold_value_decreased
>>> years_gold_value_decreased()
(2013, 2009)

Become a data ninja and as always keep calm and keep it Python!

Login and get coding
go back Intermediate level
Bitecoin 3X

98 out of 99 users completed this Bite.
Will you be Pythonista #99 to crack this Bite?
Resolution time: ~60 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 3.86 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help