0

I've written a program called pyramid.py and I'm trying to access it from the command prompt.

So far I've tried typing the name out: Resulting in a NameError

Here

And I tried dragging the file into the window: Resulting in a SyntaxError

Here

1
  • Hello and welcome to StackOverflow! Please type out the messages instead of including images. Commented Sep 24, 2020 at 1:13

1 Answer 1

1

You give the script file as an argument to the python command:

C:\Users\Parker>python3 pyramid.py
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.