0
does python works on linux or ubuntu?
6 ответов
+ 6
Yes. Once you install the python interpreter, you can launch python programs with:
python your_file.py
You can also put this shebang at the top of your script:
#!/usr/bin/env python
It allows you to execute the script directly, without explicitely calling the interpreter:
./your_file.py
If you want to execute some python code directly, you can use -c:
python -c print("Hello world!")
You can also use the interactive mode by just typing:
python
+ 2
python is platform independent language
so it does not matter which is you use
if you can install the interpreter in that OS, your program can run without any problem
😀
0
Yuuup infact i think it works best on linix
0
Allready Python intalled for Ubuntu. Can will you open CMD, after write "python" and entered finish :)
0
Yeah. Python only requires a Python interpreter for a system to be compiled on it, which is available for Linux!
0
yes