What is the output of this program? name = "Mia C. Johnson" print("Mia" in name) (1 point)

"Mia" in name
an error message
Mia in Mia C. Johnson
True

3 answers

The output of the program will be:

True

This is because the string "Mia" is indeed a substring of the string "Mia C. Johnson". Therefore, the expression "Mia" in name evaluates to True, and that is what gets printed.

True

That's correct! The output of the program is indeed True, since "Mia" is a substring of "Mia C. Johnson". If you have any more questions or need further clarification, feel free to ask!