[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, 1492 Views

Wow, thanks everyone! Didn’t expect so many helpful replies.

Tried the cmd method (`python hello.py`) and it worked! The window didn’t disappear, so I could actually see the output.

Quick follow-up: what’s the difference between `python` and `py` in the command? Saw both mentioned and got curious.

Also, gonna check out VS Code—sounds way easier than messing with cmd every time. Appreciate the tips! 🙌

Messages In This Thread



Users browsing this thread: 1 Guest(s)