#Ryan Walters Nov14 2020 -- A simple project that prints guest list invitations, and then adds and removes its items.
#Initial guest list and name variable
guest_list = ['david', 'mike', 'jimbo', "lewis"]
my_name = 'ryan walters'

#Initial invitations
#David
invitation1 = (f"Greetings, {guest_list[0].title()}. I would like to "
    "cordially invite you to a specially prepared dinner at my apartment. "
    "Please let me know if you can make it. It would be great to see you "
    f"again. Sincerely, {my_name.title()}")
#Mike
invitation2 = (f"Greetings, {guest_list[1].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
#Jimbo
invitation3 = (f"Greetings, {guest_list[2].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
#Lewis
invitation4 = (f"Greetings, {guest_list[3].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
#Length
length = f"So far, I have invited {len(guest_list)} friends to dinner."

#Printing initial invitations
print(invitation1)
print(invitation2)
print(invitation3)
print(invitation4)
print(length)

#Modifying
print(f"Oh dear, it seems that our friend {guest_list[2].title()} cannot "
    "attend the event this evening. We will have to invite someone else.")
guest_list[2] = 'bilbo'
invitation3 = (f"Greetings, {guest_list[2].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation3)

#Inserting and Appending new names
guest_list.insert(0, 'Colton')
guest_list.insert(2, 'Ken')
guest_list.append('Brian')

#Printing new set of invitations
#Colton
invitation1 = (f"Greetings, {guest_list[0].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation1)
#David
invitation2 = (f"Greetings, {guest_list[1].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation2)
#Kyle
invitation3 = (f"Greetings, {guest_list[2].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation3)
#Mike
invitation4 = (f"Greetings, {guest_list[3].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation4)
#Bilbo
invitation5 = (f"Greetings, {guest_list[4].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation5)
#Lewis
invitation6 = (f"Greetings, {guest_list[5].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation6)
#Brianna
invitation7 = (f"Greetings, {guest_list[6].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation7)

#Length
length = f"So far, I have invited {len(guest_list)} friends to dinner."
print(length)

#Shrinking guest list
print(f"Unfortunately, it so happens that I can only invite two guests. I am a "
    "terrible planner, I know.")

uninvited_colton = guest_list.pop(0)
uninvited_mike = guest_list.pop(2)
uninvited_bilbo = guest_list.pop(2)
uninvited_david = guest_list.pop(0)
uninvited_kyle = guest_list.pop(0)
print(guest_list)

uninvited1 = (f"My Dearest Apologies {uninvited_colton.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
uninvited2 = (f"My Dearest Apologies {uninvited_mike.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
uninvited3 = (f"My Dearest Apologies {uninvited_bilbo.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
uninvited4 = (f"My Dearest Apologies {uninvited_david.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
uninvited5 = (f"My Dearest Apologies {uninvited_kyle.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
print(uninvited1)
print(uninvited2)
print(uninvited3)
print(uninvited4)
print(uninvited5)

#Final invitations
final_invitation1 = (f"Dear {guest_list[0].title()}, I had to make some "
    "changes to the guest list tonight, but wanted to let you know that you "
    "are still invited! See you tonight.")
final_invitation2 = (f"Dear {guest_list[1].title()}, I had to make some "
    "changes to the guest list tonight, but wanted to let you know that you "
    "are still invited! See you tonight.")
print(final_invitation1)
print(final_invitation2)

#Final Length
length = (f"Due to unforseen circumstances, I have ended up only inviting "
    f"{len(guest_list)} friends to dinner.")
print(length)

#Final Deletions to empty list
del guest_list[0]
del guest_list[0]
print(guest_list)

#END OF PROGRAM

fdd73a3ba5cc7bb4887006664a18034640b2fe66
<mask token>

<mask token>
print(invitation1)
print(invitation2)
print(invitation3)
print(invitation4)
print(length)
print(
    f'Oh dear, it seems that our friend {guest_list[2].title()} cannot attend the event this evening. We will have to invite someone else.'
    )
<mask token>
print(invitation3)
guest_list.insert(0, 'Colton')
guest_list.insert(2, 'Ken')
guest_list.append('Brian')
<mask token>
print(invitation1)
<mask token>
print(invitation2)
<mask token>
print(invitation3)
<mask token>
print(invitation4)
<mask token>
print(invitation5)
<mask token>
print(invitation6)
<mask token>
print(invitation7)
<mask token>
print(length)
print(
    f'Unfortunately, it so happens that I can only invite two guests. I am a terrible planner, I know.'
    )
<mask token>
print(guest_list)
<mask token>
print(uninvited1)
print(uninvited2)
print(uninvited3)
print(uninvited4)
print(uninvited5)
<mask token>
print(final_invitation1)
print(final_invitation2)
<mask token>
print(length)
del guest_list[0]
del guest_list[0]
print(guest_list)

guest_list = ['david', 'mike', 'jimbo', 'lewis']
my_name = 'ryan walters'
invitation1 = (
    f'Greetings, {guest_list[0].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
invitation2 = (
    f'Greetings, {guest_list[1].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
invitation3 = (
    f'Greetings, {guest_list[2].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
invitation4 = (
    f'Greetings, {guest_list[3].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
length = f'So far, I have invited {len(guest_list)} friends to dinner.'
print(invitation1)
print(invitation2)
print(invitation3)
print(invitation4)
print(length)
print(
    f'Oh dear, it seems that our friend {guest_list[2].title()} cannot attend the event this evening. We will have to invite someone else.'
    )
guest_list[2] = 'bilbo'
invitation3 = (
    f'Greetings, {guest_list[2].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
print(invitation3)
guest_list.insert(0, 'Colton')
guest_list.insert(2, 'Ken')
guest_list.append('Brian')
invitation1 = (
    f'Greetings, {guest_list[0].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
print(invitation1)
invitation2 = (
    f'Greetings, {guest_list[1].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
print(invitation2)
invitation3 = (
    f'Greetings, {guest_list[2].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
print(invitation3)
invitation4 = (
    f'Greetings, {guest_list[3].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
print(invitation4)
invitation5 = (
    f'Greetings, {guest_list[4].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
print(invitation5)
invitation6 = (
    f'Greetings, {guest_list[5].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
print(invitation6)
invitation7 = (
    f'Greetings, {guest_list[6].title()}. I would like to cordially invite you to a specially prepared dinner at my apartment. Please let me know if you can make it. It would be great to see you again. Sincerely, {my_name.title()}'
    )
print(invitation7)
length = f'So far, I have invited {len(guest_list)} friends to dinner.'
print(length)
print(
    f'Unfortunately, it so happens that I can only invite two guests. I am a terrible planner, I know.'
    )
uninvited_colton = guest_list.pop(0)
uninvited_mike = guest_list.pop(2)
uninvited_bilbo = guest_list.pop(2)
uninvited_david = guest_list.pop(0)
uninvited_kyle = guest_list.pop(0)
print(guest_list)
uninvited1 = (
    f'My Dearest Apologies {uninvited_colton.title()}, it appears I can no longer accomodate you at this party. I will however be having another dinner this weekend to make it up to you.'
    )
uninvited2 = (
    f'My Dearest Apologies {uninvited_mike.title()}, it appears I can no longer accomodate you at this party. I will however be having another dinner this weekend to make it up to you.'
    )
uninvited3 = (
    f'My Dearest Apologies {uninvited_bilbo.title()}, it appears I can no longer accomodate you at this party. I will however be having another dinner this weekend to make it up to you.'
    )
uninvited4 = (
    f'My Dearest Apologies {uninvited_david.title()}, it appears I can no longer accomodate you at this party. I will however be having another dinner this weekend to make it up to you.'
    )
uninvited5 = (
    f'My Dearest Apologies {uninvited_kyle.title()}, it appears I can no longer accomodate you at this party. I will however be having another dinner this weekend to make it up to you.'
    )
print(uninvited1)
print(uninvited2)
print(uninvited3)
print(uninvited4)
print(uninvited5)
final_invitation1 = (
    f'Dear {guest_list[0].title()}, I had to make some changes to the guest list tonight, but wanted to let you know that you are still invited! See you tonight.'
    )
final_invitation2 = (
    f'Dear {guest_list[1].title()}, I had to make some changes to the guest list tonight, but wanted to let you know that you are still invited! See you tonight.'
    )
print(final_invitation1)
print(final_invitation2)
length = (
    f'Due to unforseen circumstances, I have ended up only inviting {len(guest_list)} friends to dinner.'
    )
print(length)
del guest_list[0]
del guest_list[0]
print(guest_list)

#Ryan Walters Nov14 2020 -- A simple project that prints guest list invitations, and then adds and removes its items.
#Initial guest list and name variable
guest_list = ['david', 'mike', 'jimbo', "lewis"]
my_name = 'ryan walters'

#Initial invitations
#David
invitation1 = (f"Greetings, {guest_list[0].title()}. I would like to "
    "cordially invite you to a specially prepared dinner at my apartment. "
    "Please let me know if you can make it. It would be great to see you "
    f"again. Sincerely, {my_name.title()}")
#Mike
invitation2 = (f"Greetings, {guest_list[1].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
#Jimbo
invitation3 = (f"Greetings, {guest_list[2].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
#Lewis
invitation4 = (f"Greetings, {guest_list[3].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
#Length
length = f"So far, I have invited {len(guest_list)} friends to dinner."

#Printing initial invitations
print(invitation1)
print(invitation2)
print(invitation3)
print(invitation4)
print(length)

#Modifying
print(f"Oh dear, it seems that our friend {guest_list[2].title()} cannot "
    "attend the event this evening. We will have to invite someone else.")
guest_list[2] = 'bilbo'
invitation3 = (f"Greetings, {guest_list[2].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation3)

#Inserting and Appending new names
guest_list.insert(0, 'Colton')
guest_list.insert(2, 'Ken')
guest_list.append('Brian')

#Printing new set of invitations
#Colton
invitation1 = (f"Greetings, {guest_list[0].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation1)
#David
invitation2 = (f"Greetings, {guest_list[1].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation2)
#Kyle
invitation3 = (f"Greetings, {guest_list[2].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation3)
#Mike
invitation4 = (f"Greetings, {guest_list[3].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation4)
#Bilbo
invitation5 = (f"Greetings, {guest_list[4].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation5)
#Lewis
invitation6 = (f"Greetings, {guest_list[5].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation6)
#Brianna
invitation7 = (f"Greetings, {guest_list[6].title()}. I would like to cordially "
    "invite you to a specially prepared dinner at my apartment. Please let me "
    "know if you can make it. It would be great to see you again. Sincerely, "
    f"{my_name.title()}")
print(invitation7)

#Length
length = f"So far, I have invited {len(guest_list)} friends to dinner."
print(length)

#Shrinking guest list
print(f"Unfortunately, it so happens that I can only invite two guests. I am a "
    "terrible planner, I know.")

uninvited_colton = guest_list.pop(0)
uninvited_mike = guest_list.pop(2)
uninvited_bilbo = guest_list.pop(2)
uninvited_david = guest_list.pop(0)
uninvited_kyle = guest_list.pop(0)
print(guest_list)

uninvited1 = (f"My Dearest Apologies {uninvited_colton.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
uninvited2 = (f"My Dearest Apologies {uninvited_mike.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
uninvited3 = (f"My Dearest Apologies {uninvited_bilbo.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
uninvited4 = (f"My Dearest Apologies {uninvited_david.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
uninvited5 = (f"My Dearest Apologies {uninvited_kyle.title()}, it appears I "
    "can no longer accomodate you at this party. I will however be having "
    "another dinner this weekend to make it up to you.")
print(uninvited1)
print(uninvited2)
print(uninvited3)
print(uninvited4)
print(uninvited5)

#Final invitations
final_invitation1 = (f"Dear {guest_list[0].title()}, I had to make some "
    "changes to the guest list tonight, but wanted to let you know that you "
    "are still invited! See you tonight.")
final_invitation2 = (f"Dear {guest_list[1].title()}, I had to make some "
    "changes to the guest list tonight, but wanted to let you know that you "
    "are still invited! See you tonight.")
print(final_invitation1)
print(final_invitation2)

#Final Length
length = (f"Due to unforseen circumstances, I have ended up only inviting "
    f"{len(guest_list)} friends to dinner.")
print(length)

#Final Deletions to empty list
del guest_list[0]
del guest_list[0]
print(guest_list)

#END OF PROGRAM
