Data in double or single quotes , It's just a string .
The single character is in Python Is also used as a string .
str1="python"
print(str1)
python
#len, Get string length
len(str1)
6
# String splicing
str2="basic"
print(str1+str2)
pythonbasic
# toggle case
# Acronym conversion
name="python basic"
print(name.title())
Python Basic
name="Python Basic"
print(name.lower())
print(name.upper())
python basic
PYTHON BASIC
# Escape character , A newline
str2="\nhadoop"
print(str1+str2)
python
hadoop
# r Original string , Escape character newline character will not take effect
str2= r"\nhadoop"
print(str2)
\nhadoop