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 Creating and Indexing Lists!
You have completed Practice Creating and Indexing Lists!
Preview
One solution to the list creation challenge.
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
Learning new things can be difficult, but
by practicing them, you'll get better.
0:00
Okay, are you ready to see my approach?
0:03
Here we go.
Open up team.py.
0:06
So our first to-do is to create an empty
list to maintain the player names.
0:11
Remember that we can create a list with
opening and closing hard brackets, and
0:15
since lists are mutable, we can start with
an empty one and add to it as needed.
0:19
The next to do task is to take some
input from the user and enter a loop.
0:24
A while loop seems like
a good thing to use here.
0:29
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