Skip to content

coderstar1234/molecular-masspython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

37 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Molecular Mass Calculator๐Ÿ“Ÿ:-

  • This is a Python program that calculates the molecular mass of a chemical compound.
  • It takes a chemical formula as input and returns the molecular mass as output.

Usage:-๐Ÿ‘

  • To use this program, simply run the molecular_mass_calculator.py script and input a chemical formula when prompted.
  • The program will then calculate the molecular mass and display the result.

bash:-๐Ÿ“บ

Copy code:-๐Ÿ“™:

  • python molecular_mass_calculator.py
  • Enter a chemical formula: H2O
  • The molecular mass of H2O is 18.015 g/mol.

Dependencies:-๐Ÿ’ค

  • This program requires the pymatgen library to be installed.
  • You can install it using pip

Copy code:-๐Ÿ“™:

pip install pymatgen:

Example:-โš™๏ธ

Here's an example usage of the program:

python

Copy code:-๐Ÿ“™:

  • from molecular_mass_calculator import calculate_molecular_mass

Calculate the molecular mass of ๐Ÿ’ฆ:-

  • formula = "H2O"
  • molecular_mass = calculate_molecular_mass(formula)
  • print(f"The molecular mass of {formula} is {molecular_mass} g/mol.")
  • This will output:

bash:-๐Ÿ“บ

Copy code:๐Ÿ“Š-

  • The molecular mass of H2O is 18.015 g/mol.

Contributing:-๐Ÿงพ

  • If you find any bugs or issues with the program, please feel free to open an issue or submit a pull request on GitHub.

License:-๐Ÿ“™

  • This program is licensed under the MIT License.
  • See the LICENSE file for details.

About

Molecular biology mass calculation ๐Ÿงฎ project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages