Project

General

Profile

Actions

workflow #4

closed

Написать функцию сортирующую входной массив

Added by Никита Борисов about 2 months ago. Updated about 2 months ago.

Status:
completed
Priority:
default
Start date:
11/02/2024
Due date:
11/02/2024
% Done:

0%

Estimated time:
1:00 h

Description

Написать функцию сортирующую входной массив (пр [1, 3, 2 ] -> [1, 2, 3])

Actions #1

Updated by Юрий Иванов about 2 months ago

  • Status changed from todo to in progress
Actions #2

Updated by Юрий Иванов about 2 months ago

  • Status changed from in progress to in qa
Actions #3

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))
Actions #4

Updated by Никита Борисов about 2 months ago

  • Status changed from in qa to todo
Actions #5

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]))

Actions #6

Updated by Юрий Иванов about 2 months ago

  • Status changed from in progress to in qa
Actions #7

Updated by Юрий Иванов about 2 months ago

def f(n):
    return sorted(n)
print(f([1,2,5,4]))

Actions #8

Updated by Юрий Иванов about 2 months ago

def f(n):
    return sorted(n)
l = input().split(',')
print(f(l))

Actions #9

Updated by Никита Борисов about 2 months ago

  • Status changed from in qa to completed
Actions

Also available in: Atom PDF