KnowledgeBoat Logo

Computer Science

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

Python Data Handling

56 Likes

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.

Answered By

33 Likes


Related Questions