In [1]:
!ls


DefensiveProgramming.ipynb
DefensiveProgramming_2.ipynb
DefensiveProgramming_3.ipynb
DefensiveProgramming_3.py
Defensive_4.ipynb
notes
python-overlapping-ranges.svg

In [3]:
import DefensiveProgramming_3  # Can import script as a module

In [4]:
DefensiveProgramming_3.range_overlap([(10.0, 11.0), (9.0, 10.5)])


Out[4]:
(10.0, 10.5)

In [ ]: