Mean Programm in python : I'm trying to implement the median in Python language, but when I run the script, it doesn't work properly. But just stop, nothing else happen. Could someone help me, pls.



**Median Programm**

    data = []
    value = input("Enter a value (blank line to quit): ")

    while value != " ":
         value = float(value)

    data.append(value)
    value = input("Enter a value (blank line to quit): ")
    data.sort()

    if len(data) == 0:
        print("No values were entered: ")
    elif len(data) % 2 == 1:
         median = data[len(data) // 2]
         print("The median of those values is", median)
    else:
        median = (data[len(data) // 2] + data[len(data) // 2 - 1]) / 2
        print("The median of those values is", median)