M BUZZ CRAZE NEWS
// general

How do i get the Python Interpreter

By Emma Johnson

I have Lubuntu. Like version 14.04 i think. Its supported till 2019 i do know that. I have python installed i think. I type "python3" into the terminal and it just allows me to code in the terminal. I can't find the interpreter anywhere. Is the interpreter what I want to be able to compile the code, and write multiple lines of code?

3

3 Answers

open or create any file with name .py for example

gedit test.py 

write code to this file

print('Hello, world!')

save and close file and execute code like:

python3 test.py

The Python3 interpreter is located under /usr/bin/python3.x.

For future reference you can easily find python or any other executable locations by using the whereis command :

whereis python3

You could download a text editor such as gedit. It will allow you to program in the editor with certain functionality such as bracket matching and syntax highlighting. To install, run:

sudo apt-get install gedit

Once it's done, you can open the program and start coding.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy