1.

How many types of strings are supported in Python ?

Answer»

Python allows two string types :

1.  Single line strings : Strings that are terminated in single line. For example : 

str = ‘Oswal Books’

2.  Multiple strings : Strings storing multiple lines of text. For example : 

str = ‘Owal \ 

Books’ 

or str = ” ” ” Oswal 

Books 

” ” “



Discussion

No Comment Found