Python
Python
endswith() Returns true if the string ends with the specified value
find() Searches the string for a specified value and returns the position of wher
found
isalpha() Returns True if all characters in the string are in the alphabet
isascii() Returns True if all characters in the string are ascii characters
islower() Returns True if all characters in the string are lower case
partition() Returns a tuple where the string is parted into three parts
replace() Returns a string where a specified value is replaced with a specified valu
rfind() Searches the string for a specified value and returns the last position of
was found
rindex() Searches the string for a specified value and returns the last position of
was found
rpartition() Returns a tuple where the string is parted into three parts
rsplit() Splits the string at the specified separator, and returns a list
split() Splits the string at the specified separator, and returns a list
startswith() Returns true if the string starts with the specified value
swapcase() Swaps cases, lower case becomes upper case and vice versa
zfill() Fills the string with a specified number of 0 values at the beginning
tuple
DICT
x = True
print(type(x))
BOOL
x = 5
float
x = (x)
x = 5.5
int
x = (x
x = 5
complex
x = (x)
Use the len method to print the length of the string.
x = "Hello World"
len(x)
print( )
Return the string without any whitespace at the beginning or the end.