• Как отсортировать список в Python?

    @nekrOK
    a=[]
    while len(a)<10 :
    a.append(input(('Введите число')))
    a.sort()
    print(int((a)[0:10:1])*10)

    File "/data/user/0/com.kvassyu.coding.py/files/default.py", line 9, in
    print(int((a)[0:10:1])*10)
    TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
    Ответ написан
    Комментировать