+ 1

Why don't we need the print command for numbers?

I'd guess it's because there are no numbers in the language, so the program knows we want it printed... is this correct? Or am I missing something?

10th Nov 2017, 4:39 AM
Fae
Fae - avatar
4 Answers
+ 17
The interpreter acts as a simple calculator: you can type an expression at it and it will write the value. Expression syntax is straightforward: the operators +, -, *and / work just like in most other languages  https://docs.python.org/3/tutorial/introduction.html
10th Nov 2017, 4:48 AM
Frost
Frost - avatar
+ 3
Thank you :)
10th Nov 2017, 5:15 AM
Fae
Fae - avatar
+ 1
I'm sorry, I'm really confused by this. So I still need to use the print command for it to show up in the program?
10th Nov 2017, 4:51 AM
Fae
Fae - avatar