CBSE Class 11 Computer Science Question 76 of 173

Data Handling — Question 5

Back to all questions
5
Question

Question 5

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

Answer

Python supports two types of strings — Single-line strings and Multi-line strings. Single line strings are enclosed in single or double quotes and terminate in one line. Multi-line strings store multiple lines of text and are enclosed in triple quotes.

Answer