Cody Bable

Generation

generate functionThu, 04 May 2023

create a function to print data that is in a set, in alphabetical order

def print_ordered(data): data = sorted(data) for item in data: print(item) print_ordered({'a', 'b', 'c'})

Questions about programming?Chat with your personal AI assistant