#LEELASOFT #BPKTECHTUTS #MAHDU #PYTHON #CLASSES
Text Sequence Type: str
Textual Data in Python is handled with str objects or strings.
Strings are immutable sequence of Unicode code points.
We can represent the value in the form of:
1.Single Quotes -- str (it is a built-in class or built-in function)
2.Double Quotes -- string (it is a predefined module)
3.Triple Quotes -- Multi-line string literals.
Example:
1.Single Quotes -- str
s = 'Welcome to Leela Soft'
s = 'Welcome to "Leela Soft" Technologies'
2.Double Quotes -- string
s = "Welcome to Vijayawada City"
s = "Welcome to 'Vijayawada' City"
3.Triple Quotes:
s = '''Welcome to Leela Soft'''
s = """Welcome to Leela Soft"""
Ex:
s = "Python"
print(s[0])
'P'
s[0] = 'J'
TypeError: 'str' object does not support item assignment
Core Python Programming
Advanced Python Programming
Python For Beginners
Python For Non-Programmers
Learn Python For Free
Technical Interview Questions on Java, Python
Java Frameworks:
Hibernate for Beginners
Spring for Beginners
Python Frameworks:
Django for Beginners
@@@@@ CONTACT ME @@@@@
Website: http://www.leelasoft.com/
Facebook: / leelasoft
Github: https://github.com/madhu-baswani
======================================
Make sure you LIKE, SUBSCRIBE, COMMENT
======================================
• Projects: Java and Python