1 00:00:00,380 --> 00:00:03,620 Welcome back, hope you had a good time getting your checker board setup. 2 00:00:03,620 --> 00:00:06,300 While this isn't the most complicated problem you'll ever come across, 3 00:00:06,300 --> 00:00:09,670 it's a good bit of exercise and thinking how to solve problems without writing out 4 00:00:09,670 --> 00:00:14,010 every single character and piece and bit of work that you have to do. 5 00:00:14,010 --> 00:00:16,210 For the first step making the two strings, 6 00:00:16,210 --> 00:00:21,100 I created a variable named xo is = to the string xo. 7 00:00:21,100 --> 00:00:25,070 And then, I multiplied it by 4 and it basically did the same thing for 8 00:00:25,070 --> 00:00:28,870 ox, so ox times 4. 9 00:00:28,870 --> 00:00:31,990 The second step is actually pretty close to the first. 10 00:00:31,990 --> 00:00:37,120 I made a new variable that I named xoxo and it's a list. 11 00:00:37,120 --> 00:00:42,888 And I put xo inside and then ox and then I multiplied that by 4. 12 00:00:42,888 --> 00:00:46,763 Python's ability to let you repeat things with multiplication is really handy for 13 00:00:46,763 --> 00:00:48,610 problems like this. 14 00:00:48,610 --> 00:00:50,630 All right, so all that's left is the printing part. 15 00:00:50,630 --> 00:00:53,542 The join method can really trip a lot of people up. 16 00:00:53,542 --> 00:00:56,413 And it's because it starts with a string and not with a list or 17 00:00:56,413 --> 00:00:58,000 iterable that you're joining. 18 00:00:59,030 --> 00:01:00,870 It's a little bit unintuitive. 19 00:01:00,870 --> 00:01:04,805 So, since we wanted to join all this up with the new line, 20 00:01:04,805 --> 00:01:10,520 that will be our character, so that's our string is this new line. 21 00:01:10,520 --> 00:01:15,428 And then we do the join method and then we put in the thing that we want to join, 22 00:01:15,428 --> 00:01:16,754 we wanna join xoxo. 23 00:01:16,754 --> 00:01:21,209 Now, I need to print this whole thing up so I wanna come back here to 24 00:01:21,209 --> 00:01:25,911 the beginning and I'm wanna type in print ), and that should be it. 25 00:01:25,911 --> 00:01:27,530 And I'm gonna go ahead and save. 26 00:01:27,530 --> 00:01:32,370 I should be able to come down here and do python string manip.py. 27 00:01:32,370 --> 00:01:35,310 And I should get x's and o's and I do. 28 00:01:35,310 --> 00:01:36,110 That looks great. 29 00:01:37,110 --> 00:01:38,950 All right, I hope you liked this bit of practice. 30 00:01:38,950 --> 00:01:42,070 Be sure to fill out the feedback survey about these kinds of practices and 31 00:01:42,070 --> 00:01:44,670 let us know what else you'd like to practice in the future. 32 00:01:44,670 --> 00:01:45,562 If you have ideas for 33 00:01:45,562 --> 00:01:48,302 other types of practice be sure to let us know about those too. 34 00:01:48,302 --> 00:01:48,970 I'll see you next time.