workflow #4
closed
Написать функцию сортирующую входной массив
Added by Никита Борисов 6 months ago.
Updated 6 months ago.
Description
Написать функцию сортирующую входной массив (пр [1, 3, 2 ] -> [1, 2, 3])
- Status changed from todo to in progress
- Status changed from in progress to in qa
def f(n):
return sorted(n)
n = list(input())
while(' ' in n):
n.remove(' ')
while(',' in n):
n.remove(',')
print(f(n))
- Status changed from in qa to todo
- Status changed from todo to in progress
def f(n):
return sorted(n)
print(f([1,2,5,4]))
- Status changed from in progress to in qa
def f(n):
return sorted(n)
print(f([1,2,5,4]))
def f(n):
return sorted(n)
l = input().split(',')
print(f(l))
- Status changed from in qa to completed
Also available in: Atom
PDF