1 00:00:00,470 --> 00:00:02,170 Welcome back, how'd you do? 2 00:00:03,190 --> 00:00:06,690 Don't worry if you weren't able to complete all of the to do tasks, 3 00:00:06,690 --> 00:00:08,590 that's completely okay. 4 00:00:08,590 --> 00:00:11,050 Learning new things can be a challenge. 5 00:00:11,050 --> 00:00:14,220 Let me show you my approach to this particular challenge. 6 00:00:14,220 --> 00:00:17,020 We were given the name variable with input. 7 00:00:17,020 --> 00:00:21,980 Our first to do asks the user by name if they understand Python while loops. 8 00:00:21,980 --> 00:00:25,310 We can do this in a similar fashion to our name statement. 9 00:00:25,310 --> 00:00:29,730 We can use string formatting to add a better personalization to it as well. 10 00:00:29,730 --> 00:00:33,210 We should also add a prompt for what the user should enter, and 11 00:00:33,210 --> 00:00:34,260 put that on a new line. 12 00:00:35,330 --> 00:00:40,040 So I have understanding equals input, string formatter, and 13 00:00:40,040 --> 00:00:42,260 do you understand Python while loops. 14 00:00:42,260 --> 00:00:46,100 Backslash m for a new line and what they should enter and 15 00:00:46,100 --> 00:00:50,320 we pass in the name variable here into our string formatting. 16 00:00:50,320 --> 00:00:53,970 For our next to do task, I'll convert the input to lower case so 17 00:00:53,970 --> 00:00:56,300 that an upper case yes is accepted too. 18 00:00:57,480 --> 00:01:02,703 Our next task The next to-do we 19 00:01:02,703 --> 00:01:07,040 ask the user again for input about whether or not they understand while loops now. 20 00:01:07,040 --> 00:01:12,170 And our final to-do outside the while loop 21 00:01:12,170 --> 00:01:15,510 we congratulate the user for understanding while loops. 22 00:01:15,510 --> 00:01:16,959 And that's it. 23 00:01:16,959 --> 00:01:19,990 I hope this didn't make you too loopy. 24 00:01:19,990 --> 00:01:22,250 Great job completing this practice session. 25 00:01:22,250 --> 00:01:24,140 Thanks for working through it with me. 26 00:01:24,140 --> 00:01:26,260 Until next time, happy coding.