How Do I Run a Python Script with Python? Need Help with Execution Steps!

20 Replies, 1887 Views

Hey everyone!

So, I’m trying to figure out how to run Python script with Python, and I’m kinda stuck. Like, I wrote a script, saved it as a .py file, but now what?

Do I just open the terminal and type something like `python script.py`? Or is there more to it?

Also, does it matter where I save the file? And what if I wanna run Python script with Python 3 specifically? Do I need to use `python3` instead?

Sorry if this sounds noob-ish, but I’m just starting out and could really use some help. Any tips or step-by-step guidance would be awesome!

Thanks in advance, y’all!

Messages In This Thread
How Do I Run a Python Script with Python? Need Help with Execution Steps! - by - 06-07-2024, 09:58 AM



Users browsing this thread: 1 Guest(s)