Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Interpreter
#1
Hello All, I am new in python programming and I am learning to run a python script in various platforms like Linux and window10. Can anyone I have started the interpreter is to open the terminal and then using the interpreter from the command line but after this I was stuck. Can anyone tell me step by step guidance?
Reply
#2
You can (should) use an IDE.
There are many available (google 'IDE python' ).
It's a personal choice as to which one you should choose, but probably the two most chosen are pycharm (community edition) and VSCode.
I started with PyCharm, but then moved to VSCode and have used nothing else since the switch.
If you'd like to use VSCode, I recommend reading (on this forum): VSCode from Start

Once you have an IDE installed, you can do everything related to development from inside the IDE.
Makes development much easier, I don't think I could stand developing code without one.
Reply
#3
(Jun-30-2020, 04:11 PM)Larz60+ Wrote: You can (should) use an IDE.
There are many available (google 'IDE python' ).
It's a personal choice as to which one you should choose, but probably the two most chosen are pycharm (community edition) and VSCode.
I started with PyCharm, but then moved to VSCode and have used nothing else since the switch.
If you'd like to use VSCode, I recommend reading (on this forum): VSCode from Start

Once you have an IDE installed, you can do everything related to development from inside the IDE.
Makes development much easier, I don't think I could stand developing code without one.

Hi @Larz60+,

What you say about this post, is it worth it to learn?
Reply
#4
I think every programmer should know how to write a program with a simple text editor and run it (even if they're using a language that requires compiling steps) before they start using an IDE. Not to say you shouldn't use IDEs, just that beginners can learn a lot about what's going on under the hood from doing things manually.

My recommendation would be to read the post that Rohan linked and follow along editing some simple scripts with a text editor and running them from the command line, then use python's built-in IDLE for a bit. Only then will you be ready to start using a pro IDE like PyCharm, Visual Studio or VSCode.

It may seem easy for those of us who have been using an IDE for ages but there is a learning curve and beginners should focus on learning the language itself before they take on the extra complexities of advanced programming tools. Don't worry, it will only take a few days before you're ready to move up. Plus, you will ALWAYS have a text editor and command prompt on any computer so you will be able to write and run code without needing to install fancy tools just to run a simple script.

EDIT: BTW, I use PyCharm Pro at work and Visual Studio Community (with python plugins) at home and they're both great IDE's. When I code on a Raspberry Pi though, I use IDLE and it's fine for most tasks too.
"So, brave knights, if you do doubt your courage or your strength, come no further, for death awaits you all with nasty, big, pointy teeth!" - Tim the Enchanter
Reply
#5
Hi,
@Marbelous, to be very honest very useful and good information.

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mac default python interpreter Viewpoint8455 2 874 Oct-13-2022, 06:25 AM
Last Post: perfringo
Photo Visual studio code unable to color syntax on python interpreter tomtom 4 6,689 Mar-02-2022, 01:23 AM
Last Post: tomtom
  How to set Tab size to 4 in Python interpreter? zzzhhh 1 1,797 Jan-18-2022, 12:11 PM
Last Post: snippsat
  readline.parse_and_bind() does not work in start-up script of Python interpreter zzzhhh 0 1,476 Jan-18-2022, 11:05 AM
Last Post: zzzhhh
  python interpreter won't import packages greenpy 1 1,915 Sep-11-2020, 07:47 PM
Last Post: buran
  How could i change the python interpreter path of os.system() 12019202386 2 2,487 Sep-02-2020, 06:58 AM
Last Post: DeaD_EyE
  Question re: running code in Editor (i.e. Atom) vs Python interpreter rok 3 2,376 Jun-29-2020, 09:20 PM
Last Post: bowlofred
  Python interpreter - output to file SectionProperties 8 5,409 Apr-11-2020, 01:38 PM
Last Post: SectionProperties
  Where is usually located the python interpreter on android devices? anddontyoucomebacknomore 1 2,213 Jul-03-2019, 06:32 PM
Last Post: metulburr
  Multiple calls to Python interpreter embedded in C++ application yield segmentation f mmoelle1 0 2,797 Mar-21-2019, 08:54 PM
Last Post: mmoelle1

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020