mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
7 lines
144 B
Python
7 lines
144 B
Python
# test large list sorting (should not stack overflow)
|
|
l = list(range(2000))
|
|
l.sort()
|
|
print(l[0], l[-1])
|
|
l.sort(reverse=True)
|
|
print(l[0], l[-1])
|