Actions
workflow #4
closedНаписать функцию сортирующую входной массив
Start date:
11/02/2024
Due date:
11/02/2024
% Done:
0%
Estimated time:
1:00 h
Description
Написать функцию сортирующую входной массив (пр [1, 3, 2 ] -> [1, 2, 3])
Updated by Юрий Иванов about 2 months ago
- Status changed from todo to in progress
Updated by Юрий Иванов about 2 months ago
- Status changed from in progress to in qa
Updated by Юрий Иванов about 2 months ago · Edited
def f(n):
return sorted(n)
n = list(input())
while(' ' in n):
n.remove(' ')
while(',' in n):
n.remove(',')
print(f(n))
Updated by Юрий Иванов about 2 months ago
- Status changed from todo to in progress
def f(n):
return sorted(n)
print(f([1,2,5,4]))
Updated by Юрий Иванов about 2 months ago
- Status changed from in progress to in qa
Updated by Юрий Иванов about 2 months ago
def f(n):
return sorted(n)
print(f([1,2,5,4]))
Updated by Юрий Иванов about 2 months ago
def f(n):
return sorted(n)
l = input().split(',')
print(f(l))
Updated by Никита Борисов about 2 months ago
- Status changed from in qa to completed
Actions