1 00:00:08,390 --> 00:00:13,560 Hi everyone. I'm excited to show you some useful features of 2 00:00:13,560 --> 00:00:15,570 the free interactive textbook that will be 3 00:00:15,570 --> 00:00:18,315 available to you as part of this specialization. 4 00:00:18,315 --> 00:00:22,590 Content in the first four courses all track pretty closely to the textbook content. 5 00:00:22,590 --> 00:00:24,450 So, whichever course you're starting with, 6 00:00:24,450 --> 00:00:27,915 you'll want to go through this video to see the important interactive features. 7 00:00:27,915 --> 00:00:31,725 You can skip it if you've already seen it in your previous course. 8 00:00:31,725 --> 00:00:34,410 The Runestone interactive textbook environment 9 00:00:34,410 --> 00:00:37,015 is the brainchild of my friend, Brad Miller. 10 00:00:37,015 --> 00:00:38,990 I've made a few contributions to 11 00:00:38,990 --> 00:00:41,990 both the software environment and especially the textbook over 12 00:00:41,990 --> 00:00:48,090 the past four years but Brad deserves almost all the credit. Let's take a look. 13 00:00:48,140 --> 00:00:52,340 The first thing you'll need to do before accessing any 14 00:00:52,340 --> 00:00:56,580 of the textbook pages is to login from Coursera. 15 00:00:57,110 --> 00:01:01,150 So I just click on this open tool, 16 00:01:01,280 --> 00:01:06,845 and I'm automatically logged in. 17 00:01:06,845 --> 00:01:11,115 You've already logged into Coursera and Coursera is passing the credentials to Runestone, 18 00:01:11,115 --> 00:01:13,790 so you'll be automatically logged in here. 19 00:01:13,790 --> 00:01:16,665 Once you're logged in all of your work will be saved, 20 00:01:16,665 --> 00:01:19,220 and we've deliberately disabled 21 00:01:19,220 --> 00:01:23,020 any other ways to login except by doing it through Coursera. 22 00:01:23,020 --> 00:01:25,605 So when you first log in, 23 00:01:25,605 --> 00:01:29,345 following that link you'll be taken to this practice page in the textbook. 24 00:01:29,345 --> 00:01:35,630 It's our way of encouraging you to use the practice feature everyday, 25 00:01:35,630 --> 00:01:38,040 and we'll come back to that later. 26 00:01:40,490 --> 00:01:42,865 Once you're logged in, 27 00:01:42,865 --> 00:01:45,230 you'll be able to click on any of the links, 28 00:01:45,230 --> 00:01:47,360 for the readings and you'll be taken directly to 29 00:01:47,360 --> 00:01:50,880 the pages in the textbook for those readings. 30 00:01:51,340 --> 00:01:57,290 So here's a link to the Runestone page for variables, 31 00:01:57,290 --> 00:01:59,760 and I'll click on it, 32 00:02:03,470 --> 00:02:06,780 and now I'm on a textbook page. 33 00:02:06,780 --> 00:02:11,085 In the textbook, you'll find text, 34 00:02:11,085 --> 00:02:17,405 and images, diagrams, but you'll also find some interactive elements. 35 00:02:17,405 --> 00:02:21,605 For example, here's what we call an active code window. 36 00:02:21,605 --> 00:02:23,660 It's got some code in it, 37 00:02:23,660 --> 00:02:26,365 and I can click save and run. 38 00:02:26,365 --> 00:02:29,130 It'll run and print something out, 39 00:02:29,130 --> 00:02:31,550 over here in an output window. 40 00:02:31,550 --> 00:02:34,740 I can change that code, 41 00:02:41,680 --> 00:02:50,345 and I can run it, and all of your code versions when you save and run them will be saved. 42 00:02:50,345 --> 00:02:53,655 I have this little scrubber here, and I can move it, 43 00:02:53,655 --> 00:02:58,179 and I can see all of my old versions, 44 00:02:58,690 --> 00:03:03,830 and they're not just saved while this page is open, they're saved permanently. 45 00:03:03,830 --> 00:03:07,140 For example, let's reload this page. 46 00:03:09,320 --> 00:03:14,075 When the page loads we're back to the original window contents. 47 00:03:14,075 --> 00:03:16,340 I can click load history, 48 00:03:16,340 --> 00:03:18,200 and then I get the scrubber, 49 00:03:18,200 --> 00:03:21,120 and it shows me my last code run. 50 00:03:21,260 --> 00:03:26,530 Now if I rerun, a previous version. 51 00:03:29,960 --> 00:03:36,230 It won't show on the scrubber as being the latest version, but if I change it. 52 00:03:37,890 --> 00:03:44,825 17a to 18, now it becomes the latest version in the history. 53 00:03:44,825 --> 00:03:48,255 Showing Codelens is a really useful feature, 54 00:03:48,255 --> 00:03:49,770 of active code windows. 55 00:03:49,770 --> 00:03:52,585 This is an amazing tool developed by Philip Guo, 56 00:03:52,585 --> 00:03:54,775 a professor at UC San Diego. 57 00:03:54,775 --> 00:03:58,579 It lets you step through the execution of a program, 58 00:03:58,579 --> 00:03:59,895 one line at a time. 59 00:03:59,895 --> 00:04:01,235 I can click forward, 60 00:04:01,235 --> 00:04:06,490 and it'll just show me what happens after one line is executed and the next and the next, 61 00:04:06,490 --> 00:04:10,070 compared to have print out just the first message, and so on. 62 00:04:10,070 --> 00:04:12,650 That's not such a big deal now, 63 00:04:12,650 --> 00:04:15,190 but it'll be really useful for you when you start to do 64 00:04:15,190 --> 00:04:17,949 more complicated programs with conditional execution, 65 00:04:17,949 --> 00:04:21,730 and iteration, and defining your own functions. 66 00:04:21,730 --> 00:04:27,250 Part of our educational philosophy in this specialization is to reveal all the magic. 67 00:04:27,250 --> 00:04:30,999 We want to give you a way to reason about how your programs are executing, 68 00:04:30,999 --> 00:04:32,740 because that's the foundation, 69 00:04:32,740 --> 00:04:35,715 for being able to debug your code through understanding, 70 00:04:35,715 --> 00:04:37,725 rather than through trial and error. 71 00:04:37,725 --> 00:04:40,540 Codelens really helps with that. 72 00:04:41,060 --> 00:04:43,950 Now sometimes these Codelens, 73 00:04:43,950 --> 00:04:47,309 examples are built right into the textbook, 74 00:04:47,309 --> 00:04:52,265 but you can always get to Codelens by hitting, 75 00:04:52,265 --> 00:04:54,875 the show Codelens or hide Codelens, 76 00:04:54,875 --> 00:04:57,080 for any active code. 77 00:04:57,080 --> 00:05:02,070 Here are some that are built in to that textbook page. 78 00:05:05,000 --> 00:05:08,450 There are also other interactive features, 79 00:05:08,450 --> 00:05:11,010 here's a multiple choice question. 80 00:05:11,020 --> 00:05:17,855 You can answer those and get immediate feedback by clicking on Check Me. 81 00:05:17,855 --> 00:05:21,050 I've actually already answered this one but suppose I said, 82 00:05:21,050 --> 00:05:24,590 "Thursday," as the thing that would print out here, 83 00:05:24,590 --> 00:05:26,885 because day is set to Thursday. 84 00:05:26,885 --> 00:05:29,780 I click check me, and it gives me some feedback. 85 00:05:29,780 --> 00:05:34,785 It's true Thursday is the value of day but, 86 00:05:34,785 --> 00:05:36,680 it gets overwritten later. 87 00:05:36,680 --> 00:05:40,320 So the correct answer is 19. 88 00:05:40,630 --> 00:05:43,130 Then when you get to the bottom of the page, 89 00:05:43,130 --> 00:05:46,610 I suggest that you click on, mark is completed. 90 00:05:46,610 --> 00:05:50,515 If you haven't clicked on it this is what it will look like initially, 91 00:05:50,515 --> 00:05:52,995 if you click on Mark is completed, 92 00:05:52,995 --> 00:05:54,375 couple good things will happen. 93 00:05:54,375 --> 00:05:58,710 One is you get the satisfaction that it says, "completed well done." 94 00:05:58,710 --> 00:06:01,250 But you get a couple of other things too. 95 00:06:01,250 --> 00:06:06,335 First, some of the multiple choice questions or other activities on the page, 96 00:06:06,335 --> 00:06:08,630 get added to the practice tool, 97 00:06:08,630 --> 00:06:10,325 which I'm going to show you in a minute, 98 00:06:10,325 --> 00:06:14,090 and that practice tool will help you review things so that you don't forget them. 99 00:06:14,090 --> 00:06:17,600 Sort of like vocabulary flashcards when you're learning a foreign language. 100 00:06:17,600 --> 00:06:21,140 Second, the pages that you've marked as completed, 101 00:06:21,140 --> 00:06:23,690 will be marked in the table of contents. 102 00:06:23,690 --> 00:06:28,050 So you can keep track of the textbook of what you've read, and what you haven't. 103 00:06:28,810 --> 00:06:31,885 Here's the table of contents, 104 00:06:31,885 --> 00:06:34,080 and you can see these orange dots, 105 00:06:34,080 --> 00:06:36,659 indicate things that I've completed, 106 00:06:36,659 --> 00:06:40,270 are marked as complete and the check marks, 107 00:06:41,410 --> 00:06:46,500 indicate things that I've opened but I haven't marked as complete. 108 00:06:49,540 --> 00:06:52,760 So this completed button at the bottom of the page, 109 00:06:52,760 --> 00:06:56,854 is separate from marking a reading is complete in Coursera, 110 00:06:56,854 --> 00:06:59,095 you may want to do both of those things. 111 00:06:59,095 --> 00:07:01,225 In Coursera will generally, 112 00:07:01,225 --> 00:07:04,280 provide you with links to particular pages, 113 00:07:04,280 --> 00:07:07,175 and so you can just read that one page, 114 00:07:07,175 --> 00:07:10,490 but if you want to you can navigate through the textbook, 115 00:07:10,490 --> 00:07:12,745 once you're on the Runestone site. 116 00:07:12,745 --> 00:07:17,400 We have these forward and back buttons this goes to the next page in the book. 117 00:07:17,400 --> 00:07:20,750 Back to the previous page, 118 00:07:22,080 --> 00:07:25,090 if you click on the textbook title, 119 00:07:25,090 --> 00:07:27,070 as I showed you a second ago, 120 00:07:27,070 --> 00:07:29,590 you'll get to a table of contents that's very 121 00:07:29,590 --> 00:07:35,030 detailed with every single page and sometimes subsections within the pages. 122 00:07:35,100 --> 00:07:37,750 If you want a more overview, 123 00:07:37,750 --> 00:07:40,255 look at it, you can click on this chapters, 124 00:07:40,255 --> 00:07:43,030 and it'll show you the different chapters, 125 00:07:43,030 --> 00:07:49,570 and you can just see the detail for one chapter at a time. 126 00:07:49,570 --> 00:07:53,515 Now, notice that the orange dots 127 00:07:53,515 --> 00:07:56,635 are shown on this detailed view of just a single chapter. 128 00:07:56,635 --> 00:07:58,540 That's little unfortunate and now that I've 129 00:07:58,540 --> 00:08:01,165 noticed at all try to add that feature at some point. 130 00:08:01,165 --> 00:08:04,885 Finally, there is a search option. 131 00:08:04,885 --> 00:08:08,210 So, I can search for 132 00:08:09,840 --> 00:08:13,825 variable and it'll tell me 133 00:08:13,825 --> 00:08:18,205 lots of pages in the textbook where the word variable shows up. 134 00:08:18,205 --> 00:08:24,760 There's also an index I want to look for 135 00:08:24,760 --> 00:08:27,520 various things and I can click on them and it'll take 136 00:08:27,520 --> 00:08:32,140 me to where they are in the in the textbook. 137 00:08:32,140 --> 00:08:34,840 Normally, if you login from Coursera, 138 00:08:34,840 --> 00:08:36,895 you'll be taken directly to the practice feature, 139 00:08:36,895 --> 00:08:39,640 but you can also get there from within the book, 140 00:08:39,640 --> 00:08:42,230 by clicking on practice. 141 00:08:43,980 --> 00:08:47,755 What's best practice feature does is it represents to you 142 00:08:47,755 --> 00:08:51,745 questions on topics that you've marked as already completed; 143 00:08:51,745 --> 00:08:56,050 that thing at the bottom of the page where you mark the pages completed. 144 00:08:56,050 --> 00:08:58,585 When you're here in the practice feature, 145 00:08:58,585 --> 00:09:06,640 you get to answer it again and if you get it right, remember that? 146 00:09:06,640 --> 00:09:10,945 It won't ask you that same topic again for a long time. 147 00:09:10,945 --> 00:09:13,310 If you get it wrong, 148 00:09:14,100 --> 00:09:17,840 then it might ask you again tomorrow. 149 00:09:19,920 --> 00:09:25,630 So, this practice tool is the brainchild of my doctoral student Ammonia Keyczar. 150 00:09:25,630 --> 00:09:28,990 He just implemented last year and in the first semester 151 00:09:28,990 --> 00:09:32,605 where we made it available to students in our on-campus classes, 152 00:09:32,605 --> 00:09:35,210 those students who used it 153 00:09:38,220 --> 00:09:43,360 in the first semester where we made it available to students in our on-campus classes. 154 00:09:43,360 --> 00:09:45,700 Those students who used it more did a 155 00:09:45,700 --> 00:09:48,875 lot better on the course exams than those who didn't. 156 00:09:48,875 --> 00:09:51,375 It was a pretty striking result for me because 157 00:09:51,375 --> 00:09:53,850 I'd been monitoring for several years to see whether just 158 00:09:53,850 --> 00:09:55,980 spending more time in the textbook had 159 00:09:55,980 --> 00:09:59,505 a similar effect on student performance and it didn't. 160 00:09:59,505 --> 00:10:01,820 In my on-campus classes, 161 00:10:01,820 --> 00:10:06,895 use of this practice tool is now required and earns a few points towards the final grade. 162 00:10:06,895 --> 00:10:10,000 For the Coursera courses, it's not required, 163 00:10:10,000 --> 00:10:12,880 but based on the results I've seen with our on-campus students, 164 00:10:12,880 --> 00:10:16,045 I strongly encourage you to use it a little every day. 165 00:10:16,045 --> 00:10:18,400 I think you'll also find it rewarding. 166 00:10:18,400 --> 00:10:21,895 Our on-campus students love the fireworks that they get. 167 00:10:21,895 --> 00:10:25,240 So, here I'm going to answer a couple of questions, 168 00:10:25,240 --> 00:10:29,950 I have only two left to practice for today. I'm going to say done. 169 00:10:29,950 --> 00:10:33,040 Ask me another question and it gives me one more. 170 00:10:33,040 --> 00:10:37,765 It says, "Hang in there, last question for today and what's going to print out. 171 00:10:37,765 --> 00:10:39,145 Oh this is a review, 172 00:10:39,145 --> 00:10:41,005 the one we just looked at." 173 00:10:41,005 --> 00:10:48,715 I say, check me and then I done and I get these fireworks, 174 00:10:48,715 --> 00:10:53,900 which are allow little fun when you finish all the questions for the day. 175 00:11:19,410 --> 00:11:24,100 Okay, for those of you who are taking this course for a certificate, 176 00:11:24,100 --> 00:11:26,574 you'll also see links to graded assignments, 177 00:11:26,574 --> 00:11:29,185 usually at the end of each lesson or set of lessons. 178 00:11:29,185 --> 00:11:30,610 In the first four courses, 179 00:11:30,610 --> 00:11:35,245 the assessments and projects are in the Runestone textbook and they're auto-graded there. 180 00:11:35,245 --> 00:11:37,465 You'll only be able to see these in Coursera 181 00:11:37,465 --> 00:11:39,745 if you're paying to take the course for a certificate. 182 00:11:39,745 --> 00:11:42,130 If you're not paying, you can find similar questions in 183 00:11:42,130 --> 00:11:46,430 the end of chapter assessment pages in the Runestone textbook. 184 00:11:46,460 --> 00:11:52,770 So, let's follow the link for 185 00:11:52,770 --> 00:12:01,240 this first assessment and this assessment just has two questions. 186 00:12:01,240 --> 00:12:05,450 I've actually already answered one of them correctly before. 187 00:12:06,390 --> 00:12:11,665 It was a multiple choice question and they want me to write some code. 188 00:12:11,665 --> 00:12:15,835 The answer to this one is print hello world. 189 00:12:15,835 --> 00:12:19,585 I'll save and run it and I get some immediate feedback. 190 00:12:19,585 --> 00:12:26,500 There's an automatic test in here and it's telling me that I got the right output. 191 00:12:26,500 --> 00:12:29,455 If I said hello word instead, 192 00:12:29,455 --> 00:12:34,460 I would get feedback saying that I had failed. 193 00:12:35,880 --> 00:12:38,530 When I tell it to grade me, 194 00:12:38,530 --> 00:12:40,600 it'll use the best answer I've ever given. 195 00:12:40,600 --> 00:12:42,610 So, if I ever managed to pass the test, 196 00:12:42,610 --> 00:12:44,485 I will pass this. 197 00:12:44,485 --> 00:12:46,300 We've set out the assessments, 198 00:12:46,300 --> 00:12:47,485 so that you have to get, 199 00:12:47,485 --> 00:12:51,580 usually that you have to get 100 percent in order to pass the assessment, 200 00:12:51,580 --> 00:12:56,425 but you can keep trying and keep getting feedback until you get that 100 percent. 201 00:12:56,425 --> 00:12:59,320 We've done that because we think it's really important to 202 00:12:59,320 --> 00:13:02,650 master the early material because things keep building on each other. 203 00:13:02,650 --> 00:13:06,625 So, I click "grade me" and it comes back, 204 00:13:06,625 --> 00:13:10,975 you can see now that it's updated the score to one instead of zero. 205 00:13:10,975 --> 00:13:15,160 I have gotten a total of two out of two for this assessment. 206 00:13:15,160 --> 00:13:20,740 If I go back to this page on Coursera and I refresh it, 207 00:13:20,740 --> 00:13:23,425 it'll tell me instead of trying again, 208 00:13:23,425 --> 00:13:26,180 it's going to tell me that I've passed. 209 00:13:29,460 --> 00:13:32,545 Passed with 100 percent. 210 00:13:32,545 --> 00:13:34,990 That's the Runestone environment. 211 00:13:34,990 --> 00:13:37,510 It's been a labor of love for all of us who've worked on 212 00:13:37,510 --> 00:13:40,120 it as an open source project over the last few years, 213 00:13:40,120 --> 00:13:42,670 especially Brad Miller who started the project. 214 00:13:42,670 --> 00:13:46,990 I hope you'll find it really helpful to you as you master the fundamentals of Python. 215 00:13:46,990 --> 00:13:50,710 I usually ended my on-camera segments with the little joke, 216 00:13:50,710 --> 00:13:53,290 so here's a bit of humorous advice. 217 00:13:53,290 --> 00:13:56,320 Procrastinate today, always today, 218 00:13:56,320 --> 00:13:58,930 don't put it off until tomorrow. 219 00:13:58,930 --> 00:14:01,885 Okay then, don't listen to my advice. 220 00:14:01,885 --> 00:14:03,430 Don't procrastinate today. 221 00:14:03,430 --> 00:14:08,720 Go get started with the first lesson in this course. I'll see you next time.