Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the result of the expression "Hi" + " there"?
Think about how you combine text.
How do you find the length of the string "Hello"?
You need to measure the string.
What is the output of the expression "Hello" + "World"?
Consider how strings can be combined.
The expression "Python" * 4 produces?
Think about what multiplication does to strings.
Create a string that includes your first name, repeat it twice, and calculate its length.
Think about how to concatenate your name and then use `len()`.
Check if a user inputted letter is in the string 'Python programming language'. How would you write this code?
Remember to assign input to a variable before checking membership.
6 more questions in this section. Enroll free to practise them all.
Enroll free