this program keeps printing the first if statement no matter what condition is met
def elements():
element = input("Enter an element of choice > ")
if element.lower() ==='li' or 'lithium':
print("Element: Lithium\nAtomic weight: 6.94\nGroup: Alkali metals(1)")
elif element.lower() == 'h' or 'hydrogen':
print("Element: Hydrogen\nAtomic weight:1.007\nGroup: Alkali metals(1)")
elif element == 'he' or 'helium':
print("Element: Helium\nAtomic weight:4.002\nGroup: Noble Gases(0)")
elements()
Output:
Enter an element of choice > h
Element: Lithium
Atomic weight: 6.94
Group: Alkali metals(1)