Python for Absolute Beginners Transcripts
Chapter: Code that interacts with users
Lecture: Interactive code intro
0:00 It's time to write interactive code and this is where writing programs and doing software really fun.
0:07 So far, what we've done is we've just told the program Do Step One, and then Step Two, and then Step Three. Maybe we got some input from the user
0:15 but there was no decision or alternate paths made around it. So, we're going to write code and make the code decide. Think of the Talk Python website.
0:25 If you go there and you're not logged in it'll do one thing, if you are logged in, it'll do another. For example, if you try to view a course
0:30 and you're not logged in, it'll tell you to log in or it'll take you to the course to just browse it and you can learn more about it and sign up there.
0:37 Once you do log in, it needs to know does this course belong to you, are you registered for it or is this some other course? And it's going to decide
0:43 if you're registered, let's show them the lessons and let them get started on the videos. But if they're not, well
0:48 send them over to learn more about it so they can sign up things like that. So this is where programs get real they get fun, they get interesting
0:55 and they can do legitimately cool things and that's what we're going to do in this chapter.