0

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
John Kugelman
  • 349,597
  • 67
  • 533
  • 578

0 Answers0