Linear Sort Program In Python Simple Temperature Switch