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

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.

主站蜘蛛池模板: 望江县| 体育| 弥勒县| 湖州市| 蛟河市| 永吉县| 宁海县| 龙南县| 临邑县| 启东市| 灵武市| 阿勒泰市| 迁安市| 广元市| 武安市| 长春市| 波密县| 精河县| 乌兰察布市| 丽江市| 尤溪县| 漳州市| 民乐县| 深州市| 松溪县| 宁阳县| 囊谦县| 泸州市| 棋牌| 西峡县| 金山区| 通城县| 泰来县| 湘阴县| 松原市| 北川| 庄河市| 宁强县| 桑日县| 襄垣县| 海门市|