خرید بک لینک

Vote count: 0

Suppose I have this string:

myString = 'abcdefghijklmnopqrstuvwxyz'

If I ask for myString[26], I will get an error saying string index out of range. Only myString[0] through myString[25] are valid.

My desired result is to ask for myString[26] and retu 'a', because I have overreached the string by 1, and come back around front at 'a' in a circular motion. How can I achieve this?

asked 29 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 15 تير 1395 ساعت: 7:33

صفحه بندی