The value of _stdout is incorrect

print statement is missing for elif.

element = (raw_input('Enter chemical name'))
name = element.lower()
if name == "hydrogen":
    print('Atomic weight: 1.008')
elif  name == "helium":
    print('Atomic weight: 4.0026')
elif  name == "lithium":
    print('Atomic weight: 4.0026')
else:
    print('Sorry, I do not recognize that element!')

Leave a Comment