How to execute a script in Python – what’s the simplest way to run my code? or Struggling with how to

14 Replies, 1216 Views

"Struggling with how to execute a script in Python – any tips for beginners?"

Hey everyone! So I’m kinda new to Python and just wrote my first script. But now I’m stuck on *how to execute a script in python* properly.

I’ve tried running it from the command line with `python myscript.py`, and it works… but is that the *best* way? Or should I use an IDE like PyCharm? Feels a bit overkill for small scripts tho.

Also, sometimes I just wanna test a few lines quickly—should I use the Python shell instead?

Any tips or fav methods for *how to execute a script in python* without overcomplicating things? Appreciate the help!

(PS: Sorry if this is a dumb question, still figuring things out 😅)

Messages In This Thread
How to execute a script in Python – what’s the simplest way to run my code? or Struggling with how to - by - 05-10-2024, 03:02 PM



Users browsing this thread: 1 Guest(s)