Python Forum

Full Version: Need help for beginning coding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all ! I just begin. Please:1. what compiler shall I use ? I use O.S. ubuntu Linux 16.04 2. Pthon language is included in Code::Blocks ?? 3. Give me please the link for an E-boolk speaking of Python language.. Thanks in advance.
Hello!
You don't need a compiler for Python, it is dynamically compiled on runtime. All you need is a Python interpreter, and as far as I know it comes bundled with Ubuntu distro (try with entering "python" in terminal). If you are used to IDEs you could use one, but it is not necessary. Especially in beginning you can do just fine without it.
About tutorials, our forum has a nice selection of tutorials (some have [Basic] tag): https://python-forum.io/Forum-Tutorials
And about online tutorials,... there are so many I can't even pick out one (or few). Perhaps if you tell your coding background and intentions, I (we) can help better.
Thank you. It's a long time ago, I constructed some 12 shells, with my vim; I used #!/bin/bash but now I forgoyt almost all about it. Give me please a file printing : Hello World ! I will you use my vim for that. Thanks
I (personal preference) would not do much work without an IDE.
It adds so much (at your fingertips, a lot of this can be done without an ide, but not with a click)
  • Auto completion of code (I usually turn it off as it annoys me more than helps)
  • Instant and automatic version control
  • Usually very good debuggers with variable watches, etc.
  • Code reformatting (that actually works in the good IDE's)
  • Code inspection (like lint). Which I always use before releasing software.
  • Packaging help (this has been one of my weaknesses, and something I have to start doing)
  • more
My favorite IDE is PyCharm (community edition available)
Atom is the favorite of others,
One I had bad luck with was eclipse. That was some time ago, and it may be ok
It's good to try several in the beginning, and then stick with one you like.
If you use Linux you already have Python preinstalled, many system utilities use it. See the python command/ However, this is python v2 (2.7.x) and if you want to execute python v3 code use the python v3 commands (python3) (install the python3 package if it is missing).

For basic programming, you don't need an IDE, you just need a decent text editor: vim, geanie, kate, to name a few.
Python is already installed in Ubuntu 16.04. Open a terminal and type python. You should see something like this:
Output:
victor@jerry:~$ python Python 2.7.12 (default, Nov 19 2016, 06:48:10)  [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> 
This is the Python interpreter and you can see the Python's version. It can be 3.5.2 if it's configured as the default. You can run 2.7.12 with python2 command if that is the case.
sylvain@sylvain-HP-Mini-110-1100:~$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
That is what I have. But how do I work with it ?
I also uploaded pyCharm , it is in my "uploads" but impossible to install it. Of course I think it is impossible to make pyCharm work , solong it is in "uploads"
What do you mean 'uploads'? Download it. PyCharm Community edition. It is a compressed tar archive. Right click on it and extract it. Move to 'pycharm-community-2017.1/bin' directory and open a terminal there. Run bash pycharm.sh. The installation process should start
I have to buy that. Of course I am ready to buy. PyCharm License Activation asks for my mail adress I give them: [email protected], But what password shall I put ? I think it is not the one for yahoo. Thanks for your help
Can't tell you that. I have PyCharm Comunity installed but do not use it. Almost.
Look for instructions on the website. See this: https://www.jetbrains.com/help/pycharm/2...guide.html
Pages: 1 2