0
Why array.sort() showing error?
from array import* n = int(input()) array = [int,input ().split( )] array.sort() print(array)
3 Respostas
+ 2
You probably meant to split input string and convert each element into int.
array = list( map( int, input().split() ) )
+ 1
n = input().split()
n.sort()
print(n)
0
Galaxy Don't i need to mention n input sould be integer?