Hi, I did the following statment and didn’t get any output:
none=8
none <6
I have to get FALSE… but I didn’t
Can somebody help me.
Thank you in advance
Hi, I did the following statment and didn’t get any output:
none=8
none <6
I have to get FALSE… but I didn’t
Can somebody help me.
Thank you in advance
The same thing applies. In a REPL (Read, Evaluate, Print, Loop), the P is printing the result of whatever the E evaluated for you.
If you write a program that just says x=12
, then Python does exactly that; it assigns the variable x
the value of 12
, and then the program finishes.
If you want to see the result of what you’re doing, you need to call print()
to print what you want to see to the console.
Thank you. I made that and works fine. Sorry for asking basic question but I just started to learn how to code last week.