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

Windows Create a folder on your computer to use for your Python programs, such as C:\pythonpractice, and save your hello.py program in that folder. In the Start menu, select "Run...", and type in cmd. This will cause the Windows terminal to open. Type cd \pythonpractice to change directory to your pythonpractice folder, and hit Enter. Type python hello.py to run your program! If it didn't work, make sure your PATH contains the python directory. See Getting Python. supposed to execute in windows terminal or python ? mine does windows terminal

OpenStudy (anonymous):

def hello(message): message = "Hello, world!" print(message) return message print(hello("message")) also it saysthis is supposed to print Hello, world once but mine does it twice... and i think it should be twice since it returns it

OpenStudy (anonymous):

twice

OpenStudy (anonymous):

The way specified in the first post is via the command prompt in windows, not Python shell (generally, IDLE). So if it works in the windows cmd prompt, then it's fine.

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!