Cody Bable

Generation

generate functionThu, 04 May 2023

create a function to print set of data in alphabetical order

def sorted_alphabet(my_list): my_list.sort() return my_list print(sorted_alphabet(["A", "B", "C", "D"]))

Questions about programming?Chat with your personal AI assistant