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!
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!
