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 Using Strings and Lists in Python!
You have completed Practice Using Strings and Lists in Python!
Preview
Create two similar strings, repeat them in a list, then join the list with a newline character and print it out.
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
lists, and the join method,
cuz they can be a little tricky.
0:00
There's a workspace attached to
this video that you should open up.
0:02
If you want to work locally,
you can download it through the File menu
0:05
in this Download Workspace
link right here.
0:09
So in this file, I've included
instructions for what to do for
0:12
this bit of practice.
0:15
There are three major steps.
0:16
Let's talk about them real quick.
0:17
First, I need you to make two strings.
0:19
They should both be made out of
alternating x's and o's, but
0:22
the first one should start with x, and
the second one should start with o.
0:24
Make them both eight characters long.
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