Python in Linux | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Python in Linux

If you're doing this in any Linux distro, just write your code in any text editor (Mousepad for example). Add: #!/usr/bin/env/ python at beginning of your programs and when you execute them just open terminal and type in: python file_location/file_name.extension if you want your syntax to be coloured like it is here, just write .py instead of .txt when you save your files.

15th Nov 2017, 12:34 PM
Marko
Marko - avatar
1 Answer
+ 1
or use idle / idle3 if you have a window manager on linux
28th Nov 2017, 1:54 AM
Carter Hanke
Carter Hanke - avatar