fitness_center
Exercise 1.1
Install and Verify
Level 1
Chapter 1: Python Setup for Petroleum EngineeringdescriptionProblem
Verify that the core scientific Python stack is loadable. In this in-browser runner NumPy, pandas, and matplotlib are already pre-loaded for you, so the task here is to import them and capture the version of each.
Store the three version strings in variables np_version, pd_version, and mpl_version, then print a one-line message.
lightbulbHints (0/3)
Stuck? Reveal hints one at a time — they progress from nudge to near-solution.
codeYour solution
main.py
visibilityReveal reference solutionexpand_more
Try solving it yourself first — the hints walk you through it. The solution below is one valid approach; yours may differ and still be correct.
import numpy as np
import pandas as pd
import matplotlib
np_version = np.__version__
pd_version = pd.__version__
mpl_version = matplotlib.__version__
print(f"numpy={np_version}, pandas={pd_version}, matplotlib={mpl_version}")
lockCopying code is a Full Access feature.