Mar-20-2022, 08:57 PM
i have a program that gives back a random list of numbers which i then sort using .sort() , but then this happened:
[1,1,1,1,1]
and what kind i do to bypass that problem?
list1 = [1,1,1,1,1] list2 = list1.sort[] print(list2)output
Nonewhy doesn't it just return
[1,1,1,1,1]
and what kind i do to bypass that problem?