def send_messages(message):
while message:
print(message)
message.pop()
sent_messages.append(message)
message = ['hello', 'i am on my way', 'cant talk right now']
sent_messages = []
send_messages(message)
print(message)
print(sent_messages)
I am learning python and having trouble trying to print 2 lists. I am trying to move values from one list to another using pop.() and append.() method However, when I run the program, it only shows me empty square brackets of the sent_messages list with no values in them.