A collection of basic scripts and exercises marking my start with Python. This repository focuses on building the essential foundations required for Computational Chemistry and scientific data processing, transitioning from my previous experience in Fortran.
The goal is to master the core syntax and basic libraries of Python. These are the "building blocks" needed before moving into complex molecular simulations, electronic structure calculations, or large-scale data analysis.
Essential logic for any scientific script:
conditionals.py&loops.py: Basic control flow and iteration.functions/: Organization and modularity of code.exercises/: General practice problems to reinforce logic.
How Python manages information differently than traditional arrays:
list_temperatures.py: Basic list manipulation using temperature data.tuples.py&dictionaries.py: Storing and accessing data using Python's native structures.
Initial applications of Python to solve fundamental chemistry and data problems:
ideal_gas_law.py: A simple script to calculate the Ideal Gas Law.molar_mass.py: Basic calculation of molar masses.file_parsing/: Initial steps in reading and extracting data from external files (crucial for handling chemical software output).numpy/: Introduction to basic array operations.Pandas/: Foundations of data frame manipulation for chemical data sets.
- Python 3.x
- NumPy (for basic numerical operations)
- Pandas (for basic table handling)
These are standalone scripts. You can run them directly using the terminal:
python ideal_gas_law.py