def uppersort(*args): return sorted([str.upper(arg) for arg in args]) print(uppersort('b', 'a', 'd', 'c'))