I want to write a function that greets ‘Batman’ or ‘Black Widow’ in uppercase and all others in lowercase text.
def hello(name):
if name == "Batman" or "Black Widow":
print(f"Hello {name.upper()}")
else:
print(f"Hello {name.lower()}")
hello("Aqua Man")
Here, Aqua Man should be all in lower but it shows as all upper. Can someone help me with this problem? Thank you!