Get answer of your all questions and doubts! ➤

Question
How many string types does Python support? How are they different from one another?

[Computer Science Class – 11 Sumita Arora solutions. Chapter 6 – Data Handling.]

Answer

Python supports two type of strings:
(1) Single-line strings
(2) Multi-line strings

In single-line strings, strings are in one line and enclosed by single or double quotes, while in multi-line strings, strings are enclosed by triple quotes in multiple lines.

Leave a Comment

Your email address will not be published. Required fields are marked *