Run
import math x = 5.001 y = 10 result = math.nextafter(x, y) print('nextafter() :', result)
Output