<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Sat, 25 May 2019, at 1:49 PM, C W wrote:<br></div><blockquote type="cite" id="qt"><div dir="ltr"><div>I can't be the first person who asked about range() that calculates the *actual* range of two numbers.<br></div></div></blockquote><div><br></div><div>Based on your mention of matlab's `range`, I think you're looking for numpy.ptp. <br></div><div><br></div><div><a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.ptp.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.ptp.html</a><br></div></body></html>