Podcast Beta
Questions and Answers
What does word.title() do?
Converts the first character of each word to upper case
What does word.isalpha() check for?
If all characters in the string are alphabetic
What does word.startswith('H') test for?
If the string starts with the letter 'H'
What is the purpose of print() in Python?
Signup and view all the answers
How can you get the last three characters of a string stored in 'word'?
Signup and view all the answers
What does word.swapcase() do?
Signup and view all the answers
What are the two types of quotation marks that can enclose characters in a string?
Signup and view all the answers
How can strings be concatenated in Python?
Signup and view all the answers
What does the 'len()' function in Python do when applied to a string?
Signup and view all the answers
How can you count the occurrences of a specific character in a string?
Signup and view all the answers
What does the 'find()' method in Python return?
Signup and view all the answers
How can you change all characters in a string to uppercase in Python?
Signup and view all the answers