Booleans not working on code playground | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Booleans not working on code playground

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

26th Feb 2019, 5:24 PM
Kashif Nawaz
Kashif Nawaz - avatar
5 Answers
+ 2
What output do you expect "7 > 7.0" to generate?
26th Feb 2019, 5:45 PM
Anna
Anna - avatar
+ 1
You need to tell the computer to display your output. How to do so depends on your language.
26th Feb 2019, 5:47 PM
TurtleShell
TurtleShell - avatar
+ 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
26th Feb 2019, 5:57 PM
Kashif Nawaz
Kashif Nawaz - avatar
0
@TurtleShell Thanks
26th Feb 2019, 5:57 PM
Kashif Nawaz
Kashif Nawaz - avatar
0
Kashif Nawaz that is correct :)
26th Feb 2019, 5:58 PM
TurtleShell
TurtleShell - avatar