<jupyter_start><jupyter_text>ElementFeatures of the *Element* class. **Note**: Only use the Element class for operations involving elements. Relevant subclasses should not be used.<jupyter_code>from chemsolve import Element
import periodictable as pt<jupyter_output><empty_output><jupyter_text>Initialize the element using the atomic symbol associated with it.Each element contains attributes of mass, atomic number, name, and symbol (which is obvious from the initialization).<jupyter_code>oxygen = Element("O")
print(oxygen.mass)
print(oxygen.number)
print(oxygen.element_name)
print(oxygen.element_symbol)<jupyter_output>15.9994
8
oxygen
O<jupyter_text>You can also initialize the element class with a mole or gram value. The class will automatically calculate the other respective value and be stored as an attribute.<jupyter_code>boron = Element('B', moles = 2.50)
print(boron.mole_amount)
print(boron.gram_amount)<jupyter_output>2.5
27.0275<jupyter_text>The mole or gram value can be updated through the instance.<jupyter_code>boron(grams = 30.00)
print(boron.mole_amount)
print(boron.gram_amount)<jupyter_output>2.5
27.0275
{'fraction_non_alphanumeric': 0.0831858407079646, 'fraction_numerical': 0.02654867256637168, 'mean_word_length': 7.377777777777778, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '212118', 'license': 'MIT', 'n_tokens_mistral': 373, 'n_tokens_neox': 349, 'n_words': 108, 'path': 'docs/source/element_example.ipynb', 'repo_name': 'amogh7joshi/chemsolve', 'size': '1130'}