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

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.

主站蜘蛛池模板: 通辽市| 阿城市| 泌阳县| 灵武市| 增城市| 霍山县| 二手房| 江油市| 潜江市| 永春县| 普兰店市| 乐亭县| 苏尼特右旗| 玉山县| 永泰县| 九龙城区| 卓尼县| 大渡口区| 敖汉旗| 嘉峪关市| 义马市| 大名县| 铜山县| 夏邑县| 措美县| 肃南| 饶阳县| 连云港市| 开平市| 越西县| 曲沃县| 鄂托克前旗| 定陶县| 雅安市| 赤峰市| 迁西县| 巴里| 久治县| 手机| 庄河市| 旅游|