I need help on a python code
I am working on learning concepts, so I started doing a simple story for practice. I am playing around with list functions. I canât get my code to replace the value of the third item in my list when I print it, and I canât finish the project until I figure this out. I am a beginner so please try to keep the explanations geared towards that. Thanks! Hereâs the code: #guest 3 canât make it to dinner and I have to invite #someone else instead and send out invitations again guest_list = ["grant cardone", "alexis downing", "jon morales"] message = ", you are invited to dinner at James' house tonight!" guest_1 = guest_list[0].title() + message guest_2 = guest_list[1].title() + message guest_3 = guest_list[2].title() + message guests = guest_1 + " \n" + guest_2 + " \n" + guest_3 print ("I am having a dinner party tonight, and three people are invited to attend.") print ("\nOh no! It looks like " + guest_list[2].title() + " can't make it! Sad day!\n") guest_list[2] = "jack sparrow" print(guests)