Python 3.X or Python 2.X

What is the ideal version of Python for beginners to learn Python? I need to recommend a programming language to some beginners for learning, and I chose Python. I'm still not sure which version.

+3
source share
5 answers

It depends on what you are going to do with it.

Working with Unicode has improved significantly in Python 3. Therefore, if you intend to use this to create web pages or some of them, Python 3 may be the obvious choice.

, - Python 2. , numpy - Django Python 2. , , Python 2.

, . , Python 3 (- ), Python 2. , Python 2 ( ), , .

+9

Python3 . numpy - , - Python3. numpy, , , Python3 .

, 2.6/2.7/3.1, __future__ import. , .

+3

3.1

. python, 3.1, , , 2.6 3.1 ( 2.6 , ).

3.1: .

+1

Python 2.6; , , , .

0

I will tell about my experiences:

You should use 2.6 now. Switch to 2.7 when 2.7.1 comes out. Switch to 3.1 / 2 when all the libraries you want are fully supported and stable.

0
source

Source: https://habr.com/ru/post/1759073/


All Articles