Welcome to the Raspberry Pi forums.
El Wess wrote: ↑
Tue May 14, 2019 2:27 pm
i have a raspberry pi 3 b+
when i write python --version
it tells me 2.7.13
when i write python3 --version
it tells me 3.5.3
which one is the default ?
(Expanding on what @bensimmo had said as I was typing this... )
As you have demonstrated, the default version of the Python interpreter that is invoked when you use python
at a shell (command line) prompt is Python 2.7.13. That is also the version that is used by various system tools and utilities that rely on python.
But in attempt to encourage you to use the Python3 interpreter, if you select 'Python' from the Programming section of the Raspberry Pi Desktop GUI you will actually run the IDLE3 Python editor and IDE - that tool is written in, and invokes, the Python3 version of the interpreter, which as you have seen is currently (with Raspbian Stretch) Python 3.5.3 .