A list of codes with capitals, small letters and digits is sorted, and its smallest item is found. codes = ["b2", "A10", "a3", "B1"] print(sorted(codes), min(codes, key=str.lower)) What does the program print?
['A10', 'a3', 'B1', 'b2'] A10
['A10', 'B1', 'a3', 'b2'] a3
['A10', 'B1', 'a3', 'b2'] A10
['a3', 'b2', 'A10', 'B1'] A10
Log in to join the discussion.
Loading…