how to get INDEX count, or last number of Index

asa32sd23 at gmail.com asa32sd23 at gmail.com
Wed May 23 17:51:27 EDT 2018


s = "kitti"

0,1,2,3,4
k,i,t,t,i

how do i retrieve '4'. i know i can do a len(s)-1, but i assume there is a function that gives me last number of index

thanks



More information about the Python-list mailing list