Created
May 12, 2022 19:24
-
-
Save KenoLeon/8eb670660140f0691b9ae76e4e339632 to your computer and use it in GitHub Desktop.
API parse example 02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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