Access by Index


Can anyone explain me this?

Access by Index

This is very confusing


well, you can access a string by index or a list:

print "hello"[1]

will print e, because counting start at zero. So you can count letter you need, but have to keep in mind that indexes are zero based.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.