1. Learn
  2. /
  3. Courses
  4. /
  5. Drag and Drop Examples

Connected

Exercise

(SAMPLE SEQUENTIAL) Festivus!

In this exercise, you will be throwing a party -- a Festivus if you will!

You will be provided a list of guests (the names list we have been working with from previous exercises). Each guest, for whatever reason, has decided to show up to the party in ten-minute increments. For example, Jerry shows up to Festivus 10 minutes into the party's start time, Kramer shows up 20 minutes into the party, so on and so forth.

We want to write a few simple lines of code, using the built-ins we have covered, to welcome each of our guests and let them know how many minutes late they are to our party.

Let's welcome our guests!

Note that numpy has been as been imported into your session as np and the names list has been loaded as well.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Use range() to create a list of arrival times (10 through 50 incremented by 10). Create the list arrival_times by unpacking the range object.