lotto= [48, 5, 17, 32, 7, 29]
laenge = len(lotto)


for akt_idx in range(laenge - 1):
    min_idx = akt_idx
    for j in range(akt_idx + 1, laenge):
        #Suche nach der niedrigsten Zahl
        if lotto[j] < lotto[min_idx]:
            min_idx = j
    #Tausch
    if akt_idx != min_idx:
        zwischenspeicher = lotto[akt_idx]
        lotto[akt_idx] = lotto [min_idx]
        lotto[min_idx] = zwischenspeicher

#Ausgabe
print(lotto)