I am new to the python language and I can not find how to write these functions in my books. They mostly write in pseudocode and expect you just to know how to exactly code it. I wanted to ask for help before I spend a couple of hours searching with no results.
This program is supposed to take the user's house prices and find the median, average, maximum, and minimum.
#This program asks for prices of houses from the user, then it takes the input
#and calculates the AVG, MAX, MIN, and MED.
print(" Real Estate Program ")
print()
print("**********************************************************************")
#Will get the user's input about the price houses in their area
prices = []
cost = 0
while cost != -99:
cost = input("Enter cost of one home or -99 to quit: ")
prices.append(cost)
if cost == "-99":
break
else:
continue
print("*********************************************************************")
#removes -99 from list
prices.pop(-1)
print("Prices of homes in your area:")
print(prices)
print()
#this find the maximum value of the houses
print ("The maximum sale price is:", max(prices))
#this find the minimum value of the houses
print ("The minimum sale price is:", min(prices))