Apr-20-2017, 11:42 PM
I'm working my way through the Eric Matthes book on Python and I've encountered his discussion of lists. For example, code:
I used variable arrays a ton in Visual BASIC. They were useful for storing messages in different languages. For example, the 0 index was always English, 1 was French, 2 German, etc. I used a lot of string variable arrays and integers, though there were others.
So far it seems like I could use a list for exactly the same thing that I used to use variable arrays for.
Are Python lists essentially the same thing or am I going to encounter variable arrays at some point?
1 |
motorcycles = [ 'honda' , 'yamaha' , 'suzuki' ] |
So far it seems like I could use a list for exactly the same thing that I used to use variable arrays for.
Are Python lists essentially the same thing or am I going to encounter variable arrays at some point?