Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
687 B
3
Indexable
Never
def gradingStudents(a1, a2, a3, a4):
    sayilar = []
    yeni_sayilar = []
    sayilar.append(a1)
    sayilar.append(a2)
    sayilar.append(a3)
    sayilar.append(a4)
    c = 0
    for i in sayilar:
        if (sayilar[c] < 35):
            yeni_sayilar.append(sayilar[c])
        else:
            a1_onlar = int(sayilar[c] / 10) * 10
            if (sayilar[c] < (a1_onlar + 5)):
                sayilar[c] = sayilar[c] + (5 - (sayilar[c] % 5))
                yeni_sayilar.append(sayilar[c])

            else:
                sayilar[c] = sayilar[c] - (sayilar[c] % 5)
                yeni_sayilar.append(sayilar[c])

        c += 1
        print(yeni_sayilar)