python - Is there a way to create a grid? -


is there way create grid can access easy? example if grid is:

x y z 1 2 3 b c 

and if run: print([1][1]) output 2

thanks!

the usual way use nested lists:

grid = [['x', 'y', 'z'], [1, 2, 3], ['a', 'b', 'c']] 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -