Access by Index


#1

Can anyone explain me this?

Access by Index

This is very confusing


#2

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.


#3

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