Skip to content

Commit 5cb8738

Browse files
committed
no need to pull out member names into another list
1 parent 1743cd6 commit 5cb8738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

raffle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
def raffle_time(api_key=None, event_id=None):
88
client = PythonKCMeetups(api_key=api_key)
99
attendees = client.get_event_attendees(event_id)
10-
attendee_names = [rsvp.name for rsvp in attendees]
11-
print random.choice(attendee_names)
10+
winner = random.choice(attendees)
11+
print "And the winner is, %s" % winner.name
1212

1313
if __name__ == '__main__':
1414
parser = OptionParser()

0 commit comments

Comments
 (0)