Загрузка данных
grades = [4, 5, 3, 4, 5, 2, 3] index = 0 while index < len(grades): if grades[index] == 2: grades[index] = 3 index += 1 print(grades)