def main():
    best=0
    worst=100
    total=0
    count=1
    while count<4:
        swimtime=int(input("How fast is your swim time?"))
        if swimtime>best:
            best=swimtime
        elif swimtime<worst:
            worst=swimtime
        total=total+swimtime
        print(best, worst)
        count=count+1
    print(best, worst)
    print("The average is ",total/count)
 
Well done - similar to cars..
ReplyDeleteIs your question nearly ready?
Mr C