Hi I learning python and have question?
If I input Joe, it print found and not found. If I input mark it print only found,
The other names or whatever I input it's say correctly, not found, yet I wonder why when I input Joe it's also print not found(else function)
a, b = 'joe','mark'
name = input("enter a name:")
if name == a:
print("found")
if name == b:
print("found")
else:
print("not found")
*note I tried to write the code also like this
If name == a or b:
Print("found")
Else:
Print("not found")
Thanks I only few hours learning python