MENU
Question -

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
” ” “

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×