0 votes
in Python by
Define String in Python?

1 Answer

0 votes
by
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.

Example:

1

2

print("Hi")

print('Hi')

Related questions

0 votes
asked Nov 15, 2020 in Python by rajeshsharma
0 votes
asked Jan 1, 2021 in Python by SakshiSharma
...