Skip to content

Instantly share code, notes, and snippets.

@KenoLeon
Created May 12, 2022 19:24
Show Gist options
  • Select an option

  • Save KenoLeon/8eb670660140f0691b9ae76e4e339632 to your computer and use it in GitHub Desktop.

Select an option

Save KenoLeon/8eb670660140f0691b9ae76e4e339632 to your computer and use it in GitHub Desktop.
API parse example 02
colorAPIResponse = {'result': [[252, 236, 177], [225, 195, 67], [248, 65, 32], [145, 43, 75], [68, 43, 87]]}
# Parse each color from the colorAPIResponse and print it out.
for color in colorAPIResponse['result']:
print(color)
# >>
# [252, 236, 177]
# [225, 195, 67]
# [248, 65, 32]
# [145, 43, 75]
# [68, 43, 87]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment