Python in GNU Emacs 25 and first steps

-1

I have Ubuntu 17.10 operating system, with all its updates. I want to learn how to use Python, then paste the jump, on my own, to Ruby or Perl. I have read that, in Ubuntu, Python can be used from the console or terminal, the problem is that it is not in its latest version (3.6.4), but in 2.7.14, as I show here:

usuario@usuario-ubuntu:~$ python 
Python 2.7.14 (default, Sep 23 2017, 22:06:14) 
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

So, I work with Haskell in GNU Emacs 25 (GUI) and I would like to know if you can work, that is, write and compile, Python in GNU Emacs 25 (GUI). I have read several manuals in English, and honestly, I do not know much.

To conclude, I would like, if you can, to recommend me a manual to learn or web pages where weekly or daily exercises are published to be able to move forward.

Thank you and greetings.

    
asked by mathandtic 15.02.2018 в 12:34
source

1 answer

1

In Ubuntu, Python 3.X is already installed, what happens is that if you put in the command line python version 2.7.X is executed. You can check it with the python3 command:

$ python
Python 2.7.6 (default, Nov 23 2017, 15:49:48) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

$ python3
Python 3.4.3 (default, Nov 28 2017, 16:41:13) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

$_

On the other hand, Emacs supports Python with no extra to install

    
answered by 15.02.2018 в 12:49