The output of the program will be:
True
This is because the string "Mia" is indeed a substring of the string stored in the variable name
, which is "Mia C. Johnson". The expression "Mia" in name
evaluates to True
.
name = "Mia C. Johnson"
print("Mia" in name)
(1 point)
1 answer
The output of the program will be:
True
This is because the string "Mia" is indeed a substring of the string stored in the variable name
, which is "Mia C. Johnson". The expression "Mia" in name
evaluates to True
.