Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Writing Loops in Python!
You have completed Practice Writing Loops in Python!
Preview
Here's how I did it!
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
My solutions also aren't
the only solutions.
0:00
I tried to stick to solutions like
the ones you might have come up with.
0:00
But please, experiment and
0:03
see if you can find better solutions
than the ones that I'm showing.
0:04
Okay, so, problem 1 needed us
to loop through the people and
0:07
see if they like to
celebrate their birthday.
0:12
And if they do, we print out
Happy Birthday and their name.
0:14
So, first, we'll do something like for
person in BIRTHDAYS.
0:17
Because that will give us each
person as we move through the loop.
0:23
And it'll put it into
a variable called person, and
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up