Welcome to the forum! You might want to introduce yourself here
(though it's not mandatory) and read this
to learn how to make better posts (maybe not "mandatory" but strongly
If you give us a runnable code snippet less than 20 lines, we can give you a better answer, but in general what I can say is that if you use brackets twice, that you have a collection inside of a collection (like a matrix, if you're familiar with those from math; no worries if not). The first bracket accesses the inner collection, and the second bracket accesses the item inside that collection. A string can be thought of as a collection of characters, so if you had a list of strings you could access the third character of the second string with
- Code: Select all
If this seems unclear, feel free to post code closer to what you already have and we can adapt an example to that.
Join the #python-forum IRC channel on irc.freenode.net for off-topic chat!
Please prefer not to PM members. The point of the forum is so that anyone can benefit. We don't want to help you over PMs/emails/Skype chats that others can't benefit from