Using your newfound understanding of variables and data types, tackle the course's first challenge exercise.
(digital pulsing music) - All right folks, it's time for a challenge. Now that you have an understanding of variables and data types, let's put your newfound powers to use by figuring out what the following lines of code will output. I really want you to try and figure out the output on a sheet of paper. Go line by line just as if you were the Python interpreter, and write down what you think the output will be. This is going to help you think like a computer. If you find yourself really struggling you can always type the code into your IDE and run it. Either way, make sure you watch the solution video where I'll provide a detailed explanation of why the output is what it is.
- Writing source code
- Basic statements and expressions
- Working with numbers and strings
- Writing conditional code
- Increasing your efficiency with functions
- Working with comments
- Making decisions in code
- Troubleshooting errors
- Learning about other languages
Skill Level Beginner
Programming Foundations: Fuzzy Logicwith Erin Colvin41m 50s Intermediate
Programming Foundations: Algorithmswith Joe Marini1h 45m Beginner
Programming Foundations: Design Patternswith Elisabeth Robson1h 44m Intermediate
1. Programming Basics
2. Programming Syntax
3. Variables and Data Types
4. Conditional Code
5. Modular Code
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.