- 1

Why are we not using the print statement?

31st Oct 2017, 10:38 AM
Abhay Yadav
Abhay Yadav - avatar
3 Answers
+ 2
Because the interactive prompt (>>>) assumes values you 'declare' are something you must want to evaluate & print. Think like a calculator: >>> 6 * 7 <enter> 42 Programs don't do that; they'll throw a syntax error, or silently create then drop your declaration (as having nowhere to go).
31st Oct 2017, 3:53 PM
Kirk Schafer
Kirk Schafer - avatar
0
in this lesson
31st Oct 2017, 10:54 AM
Abhay Yadav
Abhay Yadav - avatar
- 1
ik. but look in the lesson of strings and the examples they have used. the code does not start with print
31st Oct 2017, 10:57 AM
Abhay Yadav
Abhay Yadav - avatar