1/5
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
len()
→ Returns the number of characters in a string.
find()
→ Returns the index of a character or sequence in a string.
→ Case-sensitive and does not return True/False.
in (operator)
→ Checks if a character or sequence exists in a string and returns True or False.
replace()
→ Replaces part of a string with another value.
Dot Notation
→ Used to access string methods.
Example: name.find("a")
f-string
→ A string prefixed with f that allows variables inside {} to format output easily.