␣a space is a character too💭a number in quotes is still a number📏len tells how many characters a string has
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.
Answer key · Set B
Strings
1len counts only the letters, not the spaces
2print(len("robot"))
3print("5" + "5")
4plus adds a space between strings by itself
5print("ha" * 3)
6print("Zara" + " " + "Bo")
7len tells how many characters a string has
8print("robot".upper())
9print("Zara" - "Bo")
10print("Bo" + 5)
11print("Zara" + "Bo")
12a number in quotes is still a number
Mark each answer, count the right ones and write the score on the sheet.