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? - Python Tutorial
From the course: Programming Foundations: Fundamentals
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Introduction to variables and data types3m 37s
-
(Locked)
Variables across languages3m 27s
-
(Locked)
Working with numbers4m 48s
-
(Locked)
Working with strings2m 29s
-
(Locked)
Properly using whitespace4m 22s
-
(Locked)
Working with comments3m 26s
-
(Locked)
Challenge: What's the output?49s
-
(Locked)
Solution: What's the output?5m 14s
-
-
-
-
-