Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
Create a string and print the first character.
Use indexing.
Write a string and show its length.
What method measures length?
What does the expression 'Python'[-1] return?
What letter is at the end of 'Python'?
True or False: The statement 'Hello' + ' World' results in 'HelloWorld'.
Consider what happens when two strings are joined without spaces.
Write a function that takes a string as input and returns the string with words reversed but not the characters in the words.
Consider how to manipulate lists after splitting.
Create a program that accepts a user input of a sentence and formats it into a string showing only the first letter of each word capitalized.
How can you use split and join effectively for this task?
6 more questions in this section. Enroll free to practise them all.
Enroll free