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
  • 330,190
  • 66
  • 504
  • 555

0 Answers0