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

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.

主站蜘蛛池模板: 南雄市| 边坝县| 衡阳市| 宝坻区| 盐源县| 措勤县| 通海县| 历史| 天峨县| 正镶白旗| 鹤庆县| 壶关县| 文水县| 岢岚县| 灌云县| 长岭县| 深州市| 吉木萨尔县| 辽中县| 奉化市| 嵊泗县| 阿拉善右旗| 同江市| 镇江市| 玉门市| 濮阳县| 绩溪县| 陈巴尔虎旗| 图们市| 洞头县| 中西区| 丹棱县| 铜陵市| 西盟| 谷城县| 涿鹿县| 九江市| 顺平县| 景德镇市| 凤冈县| 黎城县|