I'm going to learn Python. The scope is the most extensive: Web, Machine Learning, big data processing, graphics ...
Which version to choose? Does Django work fine with Python version 3?
For version 2 more description and tutorials.
I'm going to learn Python. The scope is the most extensive: Web, Machine Learning, big data processing, graphics ...
Which version to choose? Does Django work fine with Python version 3?
For version 2 more description and tutorials.
You can learn both. In fact, it is one language. And for specific projects to choose what is more suitable - 2.7 or 3.
The fundamental difference between the versions is the severity of the approach to mixing Unicode and byte strings. Standard types more commonly use default iterators. In version 3, some rough spots were also removed, such as implicit relative imports, syntax for exceptions corrected, list comprehension names, etc. A new syntax has been added, for example, yield from , which allows you to conveniently program with such things as asyncio. Some standard modules have been reorganized, for example, the urllib2.urlopen() function is the urllib.request.urlopen() in Python 3. Google will always tell you where everything lies. Surface things, such as the print function in the 3rd version and the print instruction in the 2nd, are recognized as they are used.
Many projects use the same source code for Python 2 and 3. So you don't even need to learn different APIs. Many popular libraries can work on Python 3 .
Source: https://ru.stackoverflow.com/questions/365114/
All Articles