1Numbers = []
2iterate = 0
3
4while len(Numbers)<5:
5 try:
6 x = int(input("Insert the number you want in the list: "))
7 Numbers.append(x)
8 except:
9 print("The input MUST be a number.")
10 continue
11 for iteration_count in range(len(Numbers)):
12 #This acts like a counting method
13 for j in range(0,len(Numbers)-1):
14 #It swaps each element for each iteration (j is just a random variable)
15 if (Numbers[j]>Numbers[j+1]):
16 Numbers[j],Numbers[j+1] = Numbers[j+1],Numbers[j]
17print(f"Here are the sorted numbers:{Numbers}")
18