Lucas Sampaio <lucassdssamp...@gmail.com> added the comment:
same code with another input type is list lista4 = input().split() print(lista4) lista4.sort() print(lista4) 6 8 9 ['6', '8', '9'] ['6', '8', '9'] lista4 = input().split() print(lista4) lista4.sort() print(lista4) 10 11 12 ['10', '11', '12'] ['10', '11', '12'] but if you put a 9 <with 10 9 10 11 ['9', '10', '11'] ['10', '11', '9'] ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34016> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com