0

How to use code playground?

Whenever I do simple codes such as 1+1 or assign a number to x and y then add them, the out put says No output. What's the deal? It works on the regular windows 10 python 3.6.

11th Feb 2018, 2:48 AM
Jaydon Mook
Jaydon Mook - avatar
5 Answers
+ 2
It's because you would need to actually enter the command for printing to the console. Simply entering values and adding them may not be understood by the computer, which is why there is no output. Try this: x = 5 y = 7 print(x + y)
11th Feb 2018, 2:57 AM
Faisal
Faisal - avatar
+ 1
Well, commands and functions are basically what make up any programming language. You should try going through the tutorial on Sololearn to understand how Python works and maybe look at some codes on the code playground, just so to get a better understanding of what coding may look like.
11th Feb 2018, 3:31 AM
Faisal
Faisal - avatar
+ 1
Yes, I just recently started learning python on here. But in real situations(for the future) am I always going to have to use commands?
11th Feb 2018, 5:51 AM
Jaydon Mook
Jaydon Mook - avatar
+ 1
@Jaydon Mook Yeah, pretty much. It's just how the compiler understands what you're typing, so it is mandatory
11th Feb 2018, 4:02 PM
Faisal
Faisal - avatar
0
Should I get used to always having to use commands, or does is not matter?
11th Feb 2018, 3:21 AM
Jaydon Mook
Jaydon Mook - avatar