From the course: Programming Foundations: Fundamentals

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Challenge: What's the output?

Challenge: What's the output?

(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.

Contents