These statements are giving output but not what I expect. Can anyone explain why?
Code
f = "H"
g = "haritas"
h = "Haritas"
print(f in (g or h))
print(f in (g and h))
Output
False
True
These statements are giving output but not what I expect. Can anyone explain why?
Code
f = "H"
g = "haritas"
h = "Haritas"
print(f in (g or h))
print(f in (g and h))
Output
False
True