G
Gleb Belov
Hey everyone! I'm quite new to Python and equally new to newsgroups in
general, so apologies if this makes no sense.
Basically, I was just exploring Python "arrays" on my own, since I
come from C++. What I did was:
I have two questions:
1) Is it possible and if so, how do I access each individual element?
Are there any indexes and what is the syntax?
2) I just noticed that the first and the last words in the output are
enclosed in single quotes, and the middle one is enclosed in double
quotes. Is it a bug? If not, why does the output work that way?
Alright, thanks in advance for any replies and I hope I'll manage to
actually find this topic...
general, so apologies if this makes no sense.
Basically, I was just exploring Python "arrays" on my own, since I
come from C++. What I did was:
['Hi!', "What's up?", 'Bye!']words = ["Hi!", "What's up?", "Bye!"]
print words
I have two questions:
1) Is it possible and if so, how do I access each individual element?
Are there any indexes and what is the syntax?
2) I just noticed that the first and the last words in the output are
enclosed in single quotes, and the middle one is enclosed in double
quotes. Is it a bug? If not, why does the output work that way?
Alright, thanks in advance for any replies and I hope I'll manage to
actually find this topic...