import pandas as pd
import numpy as np

df = pd.read_csv(r'D:\HTEX\Pythonbk\codesdata\bmi.csv')
ht = df['height']
range1 = np.max(ht) - np.min(ht)
range2 = np.percentile(ht,100) - np.percentile(ht,0)
range3 = sorted(ht)[len(ht)-1] - sorted(ht)[0]

ht2 = sorted(ht)
range = ht2[len(ht2)-1] - ht2[0]

print(range1, range2, range3, range)