Questions Flashcards
to check if a string contains only characters and is not empty
isalpha()
to check if a string contains characters or digits and is not empty
isalnum()
to check if a string contains digits and is not empty
isdecimal()
to get a lowercase version of a string
lower()
to check if a string is lowercase
islower()
to get an uppercase version of a string
upper()
to check if a string is uppercase
isupper()
to get a capitalized version of a string
title()
to check if the string starts with a specific substring
startswith()
to check if the string ends with a specific substring
endswith()
to replace a part of a string
replace()
to split a string on a specific character separator
split()
to trim the whitespace from a string
strip()
to append new letters to a string
join()
to find the position of a substring
find()