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

String types

We know that a string is a collection of characters. In Python, string types come under the sequence category. Strings are really powerful and have many methods that can be used to perform string manipulation operations. Let's look at the following piece of code, which introduces us to strings in Python. Strings can be declared within both single and double quotes in Python:

In the preceding code, we are simply declaring a string called my_str and printing it on the console window.

主站蜘蛛池模板: 梅河口市| 方正县| 泰和县| 永济市| 孝义市| 定兴县| 夏津县| 曲麻莱县| 昌都县| 宣汉县| 晴隆县| 乌拉特中旗| 舒兰市| 上栗县| 晴隆县| 新昌县| 巫山县| 贵州省| 闽清县| 五莲县| 驻马店市| 宣化县| 寿阳县| 固安县| 罗城| 奉节县| 尉氏县| 屯留县| 韶山市| 天水市| 寿宁县| 承德市| 长葛市| 枣强县| 新野县| 容城县| 汉寿县| 玉山县| 平顺县| 子洲县| 宁南县|