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

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.

主站蜘蛛池模板: 惠东县| 宣威市| 张家口市| 自治县| 满城县| 达尔| 墨江| 绿春县| 华亭县| 尤溪县| 兰西县| 深水埗区| 石屏县| 高平市| 鹤庆县| 襄城县| 新疆| 文水县| 贡觉县| 金乡县| 皮山县| 海阳市| 娄底市| 景宁| 尼玛县| 邢台县| 海安县| 红安县| 梁河县| 来宾市| 巧家县| 安丘市| 海阳市| 吉林市| 盐城市| 罗源县| 驻马店市| 沾益县| 丰台区| 同江市| 吉林省|