The output of the program is False
.
This is because the string "lee"
is not present in the string name
, which is "Marco S. Lee"
, since string comparisons are case-sensitive in Python.
name = "Marco S. Lee"
print("lee" in name)
(1 point)
Responses
lee
lee
True
True
False
False
Marco S. Lee
1 answer
The output of the program is False
.
This is because the string "lee"
is not present in the string name
, which is "Marco S. Lee"
, since string comparisons are case-sensitive in Python.