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'})

Want to kickstart your project?Use the new AI Studio to create your code