Media Summary: Please Subscribe Your Channel & Keep In Touch * Why does ['10','9','2'] sort to ['10','2','9']? They're strings, so Python sorts them as text, character by character. Use .sort(key=int) to ...
Cs101 Topic010 - Detailed Analysis & Overview
Please Subscribe Your Channel & Keep In Touch * Why does ['10','9','2'] sort to ['10','2','9']? They're strings, so Python sorts them as text, character by character. Use .sort(key=int) to ...