Comparing Values

In this quiz, look carefully at the variable values… the try and work out what the program will print out.

 

Results

You can try out some of this code here

https://repl.it/@PythonSch/compare-3-values

 

You should check your answers then try out this code here

https://repl.it/@PythonSch/compare-3-values

#1. Look carefully at the code. Which statements will be printed out?

#2. In this program, which statements will be printed

#3. Which statements will be printed in this program?

Because b>c it will print this out, which is what you want….

Unfortunately, the final statement c>a is also true and this will be printed.

Previous
Finish