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

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.

主站蜘蛛池模板: 长宁县| 襄樊市| 乌鲁木齐县| 甘泉县| 麦盖提县| 余庆县| 嘉鱼县| 万安县| 杭州市| 乌兰浩特市| 滁州市| 台东市| 绥宁县| 温泉县| 铅山县| 鹤庆县| 陆河县| 杭锦后旗| 阳西县| 东城区| 湖南省| 太和县| 上林县| 成武县| 成安县| 于田县| 梨树县| 五莲县| 乐昌市| 江陵县| 吴忠市| 巍山| 岫岩| 高陵县| 尖扎县| 山丹县| 土默特左旗| 邢台市| 镇沅| 工布江达县| 平安县|