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 -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -