circuitpython/tests/basics/sorted.py

3 lines
93 B
Python
Raw Normal View History

2014-01-13 00:12:50 -05:00
print(sorted(set(range(100))))
print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2)))