官术网_书友最值得收藏!

String indexes

It must be noted that strings can be accessed as a sequence of characters in Python. Strings can be thought of as a list of characters. Let's try to print the characters at various indices of the string, as shown in the following screenshot:

At index 0, the character 0 gets printed. At index 10, we have an empty space, while at index 5, we have the letter m. It should be noted that the sequences are stored in Python with a starting index of 0, and the same holds true for the string type.

主站蜘蛛池模板: 河津市| 阳城县| 齐河县| 庆元县| 揭西县| 南雄市| 崇信县| 东兰县| 霍山县| 霍州市| 贵州省| 清水河县| 新乐市| 昭觉县| 龙州县| 岚皋县| 禹州市| 琼中| 紫金县| 扎赉特旗| 钟山县| 灵丘县| 凤台县| 新平| 新泰市| 个旧市| 重庆市| 尖扎县| 勐海县| 永寿县| 阳朔县| 平凉市| 霍州市| 正镶白旗| 临安市| 清涧县| 洛阳市| 鄯善县| 洮南市| 屏边| 江津市|