Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

WGU Foundations of Programming (Python) (E010) Exam - Topic 2 Question 8 Discussion

Posted by Brandee on May 27, 2026 at 03:59 AM

What sequence of steps is required to execute a Python script from a text editor using the terminal on a Windows device?

Suggested Answer: A

To run a Python script from a text editor using the terminal on Windows, the file should first be saved with the .py extension. Then, the terminal is opened, and the script is executed using the Python command followed by the filename.

Example:

python filename.py

The official Python documentation explains that when the interpreter is called with a filename argument, it reads and executes the script from that file. On Windows, the python command can be used from a terminal after Python is installed and configured correctly.

Therefore, the correct answer is A. Save file > open terminal > type python filename.py.


Get Premium Foundations of Programming (Python) (E010) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
17 comments · newest first
LE
Levi 23 days ago
Exactly! A is the way to go.
VA
Valentine 28 days ago
A is clear and simple. Perfect for beginners.
CO
Corazon 1 month ago
D is incorrect too. No compiling for Python scripts!
HE
Helene 1 month ago
Option C is confusing. You need to save first.
GE
Gearldine 1 month ago
I agree, A is straightforward. Just type the command.
TH
Thersa 2 months ago
Option B is not right. Why close the editor?
MA
Malika 2 months ago
Yeah, saving the file first is crucial.
RO
Rolland 2 months ago
I think option A is the best choice.
FL
Flo 2 months ago
I thought you could just run it directly from the editor.
AL
Alonso 2 months ago
Really? Compiling in D) seems off for Python, right?
YV
Yvette 2 months ago
Wait, why would you close the text editor? B) makes no sense.
LO
Lovetta 3 months ago
Totally agree, A) is the correct answer!
DA
Darell 3 months ago
A) is the right way to do it!
AR
Arletta 3 months ago
I’m a bit confused about the compiling part in option D; I thought Python scripts just run directly without needing to compile.
EL
Elly 3 months ago
I feel like option B is wrong because we shouldn't need to open a different IDE just to run a script.
HU
Huey 3 months ago
I remember practicing a similar question, and I think we definitely need to type "python filename.py" in the terminal after saving the file.
DA
Darell 4 months ago
I think the right steps start with saving the file, but I'm not sure if we need to open the terminal first or after that.
0/2000 characters

Save Cancel