What is the output of this program?

name="Marco S. Lee "
print("lee" in name)
(1 point)
lee
True
False
Marco S. Lee

1 answer

The output of the program will be False.

The code checks if the string "lee" is present in the variable name, which is set to "Marco S. Lee ". Since the string "lee" (with a lowercase 'l') does not match the string "Lee" (with an uppercase 'L') in any part, the in keyword will return False.