+ 1

In cmd window is print is necesaary?

instead of print(2+3) can i use 2+3 directly in cmd window

5th Nov 2016, 5:43 AM
Dinesh Devaki
Dinesh Devaki - avatar
4 Respostas
+ 4
wait. How did use print (2+3) on cmd in the first place?
5th Nov 2016, 6:16 AM
Sandeep Balachandran
Sandeep Balachandran - avatar
+ 2
Assuming 'interactive mode' is intended (cmd has special meaning to Windows users): no. yes. Here are more uses for the mode: http://stackoverflow.com/a/2665150/3981745 ============ Confusion is understandable. Both python and cmd shell have REPL interfaces. https://en.m.wikipedia.org/wiki/Read–eval–print_loop
5th Nov 2016, 6:25 AM
Kirk Schafer
Kirk Schafer - avatar
0
yup i have seen another video lecture where he provide 2+3 the output came as 5. no print statement is used
5th Nov 2016, 6:20 AM
Dinesh Devaki
Dinesh Devaki - avatar
0
to print in cmd you use echo command
4th Feb 2017, 12:02 AM
Arka Style
Arka Style - avatar