From 3a016aaca34943ac7ee197f1e14807c677c05024 Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Tue, 17 Feb 2026 18:59:26 +0500 Subject: [PATCH] Project --- f.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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