What is the output of this program?

name = "Marco S. Lee"

print(len(name))

(1 point)
Responses

len(name)

len(name)

Marco S. Lee

Marco S. Lee

10

10

12

1 answer

The program calculates the length of the string stored in the variable name, which is "Marco S. Lee". The len() function counts the number of characters in the string, including spaces and punctuation.

The string "Marco S. Lee" contains 12 characters total (including spaces).

Therefore, the output of the program will be:

12

So the correct response is 12.