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

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.

主站蜘蛛池模板: 永泰县| 和林格尔县| 景德镇市| 阳东县| 洞头县| 鄯善县| 微山县| 家居| 柯坪县| 桑植县| 金阳县| 济阳县| 小金县| 玉门市| 安阳县| 忻州市| 广元市| 阜新市| 安远县| 巴青县| 眉山市| 察雅县| 华蓥市| 慈利县| 广州市| 明光市| 桃江县| 上杭县| 阳朔县| 咸阳市| 双峰县| 铜鼓县| 常宁市| 东方市| 凤山县| 石渠县| 德州市| 卢湾区| 罗甸县| 从化市| 贵定县|