Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seq=[]
- i=0
- while True:
- i=i+1
- num=input("Input score (or ENTER to finish): ")
- if num=="":
- break
- elif type(int(num))==int or type(float(num))==float:
- seq.append(float(num))
- seq.sort()
- for x in range(len(seq)):
- print(f"Rank #{x+1}: {int(seq[len(seq)-(x+1)])}")
Advertisement
Add Comment
Please, Sign In to add comment