diff --git a/f.py b/f.py index 61ef557..79729cd 100644 --- a/f.py +++ b/f.py @@ -1,7 +1,7 @@ -sum_i=0 -for i in range(int(input('Введите число последовательности: '))): - a=int(input('Введите числа')) - if a%5==0 and a>sum_i: - sum_i=a +list1=[1,4,7,9,2,13,6,1,10] -print(sum_i) \ No newline at end of file +def func1(x): + return x%2 + +list1=sorted(list1,key=func1) +print(list1) \ No newline at end of file