Generation

generate functionThu, 09 Mar 2023

リストの末端に要素を追加する

def append_to(element, to=[]): to.append(element) return to my_list = append_to(12) print my_list my_other_list = append_to(42) print my_other_list my_other_list = append_to(12) print my_other_list

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