Skip to content

Instantly share code, notes, and snippets.

@alphazwest
Created November 29, 2021 23:15
Show Gist options
  • Save alphazwest/fe2132a6391b76527fbcdc06fff10e90 to your computer and use it in GitHub Desktop.
Save alphazwest/fe2132a6391b76527fbcdc06fff10e90 to your computer and use it in GitHub Desktop.
# Five prices as High and Low for the
# five day period K
prices = [
{"high": 5, "low": 3},
{"high": 7, "low": 4},
{"high": 9, "low": 6},
{"high": 7, "low": 3},
{"high": 8, "low": 4},
]
# Example access
day_one_high = prices[0]["high"]
day_one_low = prices[0]["low"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment