Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Python for Beginners Third Quiz

I don't understand the question "how would you run hello_world.py"

What is the answer to "how would you run hello_world.py"

3 Answers

nakalkucing
nakalkucing
12,964 Points

Hey Shavonne! The question is asking how, if you had a file named "hello_world.py", you would run that file in the console. Is that clear enough? Let me know if you need more help. :)

Not really I could not figure out the answer to this question: have a script named hello_treehouse.py. How would I run that?

There is a blank space to answer this question but everything I've tried typing in is incorrect.

nakalkucing
nakalkucing
12,964 Points

Ok. :) In the video "Running Python Scripts" minute 3:16 Kenneth tells you the answer to this question. The answer to the question "how would you run hello_world.py" is the words he types into the Console in Workspaces to run his script. Does that answer your question? Let me know if you need any more help and have fun learning Python :)

Louis Magdaleno
Louis Magdaleno
4,736 Points

Hi Shavonne, to run a Python file you need to type in a special command into the terminal. To run the file hello_world.py, we would type in "python hello_world.py" into the terminal. By doing this, we are essentially telling the computer to use PYTHON to run HELLO_WORLD.PY. Hope this helps.