elements = [
    {"symbol": "Ac","name": "Actinium","mass": 227},
    {"symbol": "Ag","name": "Silver","mass": 107.8682},
    {"symbol": "Al","name": "Aluminum","mass": 26.9815386},
    {"symbol": "Am","name": "Americium","mass": 243},
    {"symbol": "Ar","name": "Argon","mass": 39.948},
    {"symbol": "As","name": "Arsenic","mass": 74.9216},
    {"symbol": "At","name": "Astatine","mass": 210},
    {"symbol": "Au","name": "Gold","mass": 196.966569},
    {"symbol": "B","name": "Boron","mass": 10.811},
    {"symbol": "Ba","name": "Barium","mass": 137.327},
    {"symbol": "Be","name": "Beryllium","mass": 9.012182},
    {"symbol": "Bh","name": "Bohrium","mass": 272},
    {"symbol": "Bi","name": "Bismuth","mass": 208.9804},
    {"symbol": "Bk","name": "Berkelium","mass": 247},
    {"symbol": "Br","name": "Bromine","mass": 79.904},
    {"symbol": "C","name": "Carbon","mass": 12.0107},
    {"symbol": "Ca","name": "Calcium","mass": 40.078},
    {"symbol": "Cd","name": "Cadmium","mass": 112.411},
    {"symbol": "Ce","name": "Cerium","mass": 140.116},
    {"symbol": "Cf","name": "Californium","mass": 251},
    {"symbol": "Cl","name": "Chlorine","mass": 35.453},
    {"symbol": "Cm","name": "Curium","mass": 247},
    {"symbol": "Cn","name": "Copernicium","mass": 285},
    {"symbol": "Co","name": "Cobalt","mass": 58.933195},
    {"symbol": "Cr","name": "Chromium","mass": 51.9961},
    {"symbol": "Cs","name": "Cesium","mass": 132.9054519},
    {"symbol": "Cu","name": "Copper","mass": 63.546},
    {"symbol": "Db","name": "Dubnium","mass": 268},
    {"symbol": "Ds","name": "Darmstadtium","mass": 281},
    {"symbol": "Dy","name": "Dysprosium","mass": 162.5},
    {"symbol": "Er","name": "Erbium","mass": 167.259},
    {"symbol": "Es","name": "Einsteinium","mass": 252},
    {"symbol": "Eu","name": "Europium","mass": 151.964},
    {"symbol": "F","name": "Fluorine","mass": 18.9984032},
    {"symbol": "Fe","name": "Iron","mass": 55.845},
    {"symbol": "Fl","name": "Flerovium","mass": 289},
    {"symbol": "Fm","name": "Fermium","mass": 257},
    {"symbol": "Fr","name": "Francium","mass": 223},
    {"symbol": "Ga","name": "Gallium","mass": 69.723},
    {"symbol": "Gd","name": "Gadolinium","mass": 157.25},
    {"symbol": "Ge","name": "Germanium","mass": 72.64},
    {"symbol": "H","name": "Hydrogen","mass": 1.00794},
    {"symbol": "He","name": "Helium","mass": 4.002602},
    {"symbol": "Hf","name": "Hafnium","mass": 178.49},
    {"symbol": "Hg","name": "Mercury","mass": 200.59},
    {"symbol": "Ho","name": "Holmium","mass": 164.93032},
    {"symbol": "Hs","name": "Hassium","mass": 270},
    {"symbol": "I","name": "Iodine","mass": 126.90447},
    {"symbol": "In","name": "Indium","mass": 114.818},
    {"symbol": "Ir","name": "Iridium","mass": 192.217},
    {"symbol": "K","name": "Potassium","mass": 39.0983},
    {"symbol": "Kr","name": "Krypton","mass": 83.798},
    {"symbol": "La","name": "Lanthanum","mass": 138.90547},
    {"symbol": "Li","name": "Lithium","mass": 6.941},
    {"symbol": "Lr","name": "Lawrencium","mass": 262},
    {"symbol": "Lu","name": "Lutetium","mass": 174.9668},
    {"symbol": "Lv","name": "Livermorium","mass": 293},
    {"symbol": "Mc","name": "Moscovium","mass": 288},
    {"symbol": "Md","name": "Mendelevium","mass": 258},
    {"symbol": "Mg","name": "Magnesium","mass": 24.305},
    {"symbol": "Mn","name": "Manganese","mass": 54.938045},
    {"symbol": "Mo","name": "Molybdenum","mass": 95.96},
    {"symbol": "Mt","name": "Meitnerium","mass": 276},
    {"symbol": "N","name": "Nitrogen","mass": 14.0067},
    {"symbol": "Na","name": "Sodium","mass": 22.98976928},
    {"symbol": "Nb","name": "Niobium","mass": 92.90638},
    {"symbol": "Nd","name": "Neodymium","mass": 144.242},
    {"symbol": "Ne","name": "Neon","mass": 20.1797},
    {"symbol": "Nh","name": "Nihonium","mass": 284},
    {"symbol": "Ni","name": "Nickel","mass": 58.6934},
    {"symbol": "No","name": "Nobelium","mass": 259},
    {"symbol": "Np","name": "Neptunium","mass": 237},
    {"symbol": "O","name": "Oxygen","mass": 15.9994},
    {"symbol": "Og","name": "Oganesson","mass": 294},
    {"symbol": "Os","name": "Osmium","mass": 190.23},
    {"symbol": "P","name": "Phosphorus","mass": 30.973762},
    {"symbol": "Pa","name": "Protactinium","mass": 231.03588},
    {"symbol": "Pb","name": "Lead","mass": 207.2},
    {"symbol": "Pd","name": "Palladium","mass": 106.42},
    {"symbol": "Pm","name": "Promethium","mass": 145},
    {"symbol": "Po","name": "Polonium","mass": 209},
    {"symbol": "Pr","name": "Praseodymium","mass": 140.90765},
    {"symbol": "Pt","name": "Platinum","mass": 195.084},
    {"symbol": "Pu","name": "Plutonium","mass": 244},
    {"symbol": "Ra","name": "Radium","mass": 226},
    {"symbol": "Rb","name": "Rubidium","mass": 85.4678},
    {"symbol": "Re","name": "Rhenium","mass": 186.207},
    {"symbol": "Rf","name": "Rutherfordium","mass": 267},
    {"symbol": "Rg","name": "Roentgenium","mass": 280},
    {"symbol": "Rh","name": "Rhodium","mass": 102.9055},
    {"symbol": "Rn","name": "Radon","mass": 222},
    {"symbol": "Ru","name": "Ruthenium","mass": 101.07},
    {"symbol": "S","name": "Sulfur","mass": 32.065},
    {"symbol": "Sb","name": "Antimony","mass": 121.76},
    {"symbol": "Sc","name": "Scandium","mass": 44.955912},
    {"symbol": "Se","name": "Selenium","mass": 78.96},
    {"symbol": "Sg","name": "Seaborgium","mass": 271},
    {"symbol": "Si","name": "Silicon","mass": 28.0855},
    {"symbol": "Sm","name": "Samarium","mass": 150.36},
    {"symbol": "Sn","name": "Tin","mass": 118.71},
    {"symbol": "Sr","name": "Strontium","mass": 87.62},
    {"symbol": "Ta","name": "Tantalum","mass": 180.94788},
    {"symbol": "Tb","name": "Terbium","mass": 158.92535},
    {"symbol": "Tc","name": "Technetium","mass": 98},
    {"symbol": "Te","name": "Tellurium","mass": 127.6},
    {"symbol": "Th","name": "Thorium","mass": 232.03806},
    {"symbol": "Ti","name": "Titanium","mass": 47.867},
    {"symbol": "Tl","name": "Thallium","mass": 204.3833},
    {"symbol": "Tm","name": "Thulium","mass": 168.93421},
    {"symbol": "Ts","name": "Tennessine","mass": 294},
    {"symbol": "U","name": "Uranium","mass": 238.02891},
    {"symbol": "V","name": "Vanadium","mass": 50.9415},
    {"symbol": "W","name": "Tungsten","mass": 183.84},
    {"symbol": "Xe","name": "Xenon","mass": 131.293},
    {"symbol": "Y","name": "Yttrium","mass": 88.90585},
    {"symbol": "Yb","name": "Ytterbium","mass": 173.054},
    {"symbol": "Zn","name": "Zinc","mass": 65.38},
    {"symbol": "Zr","name": "Zirconium","mass": 91.224}
]

# print(type(elements))
# print(elements[0] ["mass"])

# print(f"{item}: {student[item]}")

for element in elements:
    m = element.get("mass")
    print(f"The mass is: {element.get('mass')}")
    

