我很难弄清楚如何在不使用列表函数的情况下将整数或字符串添加到列表中,有人可以帮助我吗?
def add(insert, place):
list1 = [1, 2, 3, 4, 5]
list1[insert:place]
return(list1)
insert = int(input("what integer would you like to insert?"))
place = int(input("where do you want it put"))
list1 = p1_function.add(insert, place)
print (list1)