Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Define String in Python?
Answer:

String in Python is formed using a sequence of characters. Value once assigned to a string cannot be modified because they are immutable objects. String literals in Python can be declared using double quotes or single quotes.

Ex:

  • print("Hello")
  • print('Hello')
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook