You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff(range(x)) # range returns the minimum and maximum of the vector x. To get the range, we must take the maximum minus the minimum. We do this using the function diff, which finds differences between consecutive elements in a vector.