+ 1
Get a output???
When I click enter in cmd, it get closed instead of getting output.....
4 Respuestas
+ 4
import os
#os.system("pause")
you need to use cmd commands to see your result
for example
import os
x = 10
y = 4
print(int(x) + int(y))
#os.system("pause")
in this code after the result you get the message like this
"pleas press any key to continue"
so your program doesn't close immediately
and also you can use any cmd commands in python by importing os
#os.system(cmd comands)
+ 2
just add
input() in en of your code and it will stay until you press enter
0
thnku for all