1 00:00:00,870 --> 00:00:02,330 - [Instructor] In this Self Check exercise, 2 00:00:02,330 --> 00:00:05,210 we'd like you to display the word Amanda 3 00:00:05,210 --> 00:00:06,890 on three separate lines, 4 00:00:06,890 --> 00:00:09,160 one in which Amanda's right aligned, 5 00:00:09,160 --> 00:00:10,840 one in which it's center aligned, 6 00:00:10,840 --> 00:00:12,720 and one in which it's left aligned, 7 00:00:12,720 --> 00:00:15,320 each in a field of 10 characters. 8 00:00:15,320 --> 00:00:18,248 And just so that you can clearly see the alignment, 9 00:00:18,248 --> 00:00:23,165 wrap the formatted data in square brackets in your output. 10 00:00:23,165 --> 00:00:26,050 So go ahead and pause the video to try that, 11 00:00:26,050 --> 00:00:27,900 and then come back to see the answer. 12 00:00:32,480 --> 00:00:34,550 Okay, let's go ahead and reveal it. 13 00:00:34,550 --> 00:00:37,410 In my case I used a single print statement to do this, 14 00:00:37,410 --> 00:00:39,970 and I've got some new line characters in here 15 00:00:39,970 --> 00:00:41,750 to separate the outputs. 16 00:00:41,750 --> 00:00:44,320 You notice we've wrapped each of these in square brackets 17 00:00:44,320 --> 00:00:47,530 so that we can see the formatted data. 18 00:00:47,530 --> 00:00:49,770 So we're going to display the string Amanda, 19 00:00:49,770 --> 00:00:52,010 right aligned in a field of 10, 20 00:00:52,010 --> 00:00:55,280 the string Amanda, centered in a field of 10, 21 00:00:55,280 --> 00:00:58,630 and the string Amanda, left aligned in a field of 10. 22 00:00:58,630 --> 00:01:00,670 So let's go ahead and execute that, 23 00:01:00,670 --> 00:01:03,050 and indeed you can see the alignment 24 00:01:03,050 --> 00:01:04,703 inside the square brackets.