Booleans not working on code playground | SoloLearn: Learn to code for FREE!

0

Booleans not working on code playground

Why 7 > 7.0 showing "no output" in Code Playground?

2/26/2019 5:24:02 PM

Kashif Nawaz

5 Answers

New Answer

+2

What output do you expect "7 > 7.0" to generate?

+1

You need to tell the computer to display your output. How to do so depends on your language.

+1

@Anna I am using python3 and the output displaying is "No output.". I thing I have to use print(7>7.0), then it should display True or False. Thanks

0

@TurtleShell Thanks

0

Kashif Nawaz that is correct :)