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

"Hey everyone, newbie here!

So, I'm trying to figure out how to run a python command in a python file. Like, I wrote a simple `print("Hello")` in a `.py` file, but how do I actually *run* it?

Do I just save it and double-click? Use the terminal? I tried googling but got a bunch of confusing stuff.

Also, is there a *best* way to run a python command in a python file, or does it not matter?

Thanks in advance! 🙏

(btw, using Windows if that changes anything)"

Messages In This Thread
[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 - by - 31-12-2024, 01:59 AM



Users browsing this thread: 1 Guest(s)