how to append element in list using function in clas code example Example: how to append list in python list1 = ["hello"] list1 = list1 + ["world"]