Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 23 Online
OpenStudy (anonymous):

I have problem in running ( print "H" ) code ... in IDLE it runs but when I want to run it in cmd the window closes just as opens. though, other programs like input_raw(...) run correctly !

OpenStudy (rsmith6559):

Actually, your print is running correctly. input_raw() has to wait for input before the program finishes. print doesn't have to wait. Just for fun, put the print into the input_raw() before the input_raw() and you'll see what I mean.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!