[b]"How do I run a Python command in a Python file?"[/b] or [b]"What's the best way to run a Python command in a P

18 Replies, 1458 Views

lol i remember being stuck on this too!

on windows, just open cmd, go to the folder where your .py file is (use `cd`), then type `python filename.py`.

if it says "python not found," you might need to reinstall and tick "add python to PATH" during setup.

pro tip: use an IDE like Thonny or IDLE—they’re noob-friendly and let you run python command in python file with a button click.

Messages In This Thread



Users browsing this thread: 1 Guest(s)