Name

string

Examples
str1 = 'CCCP'
str2 = "CCCP"
print(str1)        # Prints 'CCCP'
print(str2)        # Prints 'CCCP'
# Use a backslash to include quotes inside of a string.
single_quote = 'This one has \'quotes\''
double_quote = "This one also has \"quotes\""
print(single_quote)
print(double_quote)
# Use triple quotes to include text that spans multiple lines.
wcwilliams = """And you may be sure
not one leaf will lift itself
from the ground
and become fast to a twig again."""
print(wcwilliams)
Description
Syntax
Parameters
str
Methods
find()
join()
lower()
replace()
split()
startswith()
strip()
upper()
Related String Formatting
.find()
.strip()
.join()
.split()
.replace()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License