Created
August 7, 2020 20:43
-
-
Save mayankdawar/c028693947868f08a4264bf1acdc693a to your computer and use it in GitHub Desktop.
The variable nested contains a nested list. Assign ‘snake’ to the variable output using indexing.
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
nested = [['dog', 'cat', 'horse'], ['frog', 'turtle', 'snake', 'gecko'], ['hamster', 'gerbil', 'rat', 'ferret']] | |
output = nested[1][2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment