deflist_sort(lt, reverse=False): n=len(lt) foriinrange(n-1): forjinrange(i+1, n): ifreverse: iflt[i] <lt[j]: lt[i], lt[j] =lt[j], lt[i] else: iflt[i] >lt[j]: lt[i], lt[j] =lt[j], lt[i] lt=input().split() list_sort(lt, reverse=False) print(lt)
deflist_sort(lt, reverse=False): n=len(lt) foriinrange(n-1): forjinrange(i+1, n): ifreverse: iflt[i] <lt[j]: lt[i], lt[j] =lt[j], lt[i] else: iflt[i] >lt[j]: lt[i], lt[j] =lt[j], lt[i] lt=input().split() list_sort(lt, reverse=False) print(lt)