Sublime Forum

Python didn't work correctly on Sublime

#1

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

0 Likes

#2
1 Like

#3

Thank you for your answer, but I use Ctrl+B to run the code.

0 Likes

#4

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.

1 Like

newb*-Condiotional Test
#5

Thank you. I made that and works fine. Sorry for asking basic question but I just started to learn how to code last week.

1 Like