A string is defined as a sequence of characters that can be enclosed in either single or double quotes. Examples include assigning the value 'chandra' and 'Chandra' to a variable named 'name'. The document illustrates how to create and display string variables in Python.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views1 page
Understanding String Data Types in Python
A string is defined as a sequence of characters that can be enclosed in either single or double quotes. Examples include assigning the value 'chandra' and 'Chandra' to a variable named 'name'. The document illustrates how to create and display string variables in Python.