Code :
import periodictable
# Get details of an element by atomic number
Atomic_No = int(input("Enter Element Atomic No :"))
element = periodictable.elements[Atomic_No]
print('Atomic number:', element.number)
print('Symbol:', element.symbol)
print('Name:', element.name)
print('Atomic mass:', element.mass)
print('Density:', element.density)
#clcoding.com
Output :
Enter Element Atomic No :26 Atomic number: 26 Symbol: Fe Name: iron Atomic mass: 55.845 Density: 7.874
0 Comments:
Post a Comment