The output of the program would be True
. The expression "Mia" in name
checks if the substring "Mia"
is present in the string name
, which is "Mia C. Johnson"
. Since it is indeed present, the program will print True
.
What is the output of this program? name = "Mia C. Johnson" print("Mia" in name) (1 point)
1 answer