PYTHON 3.6 HAS BEEN RELEASED TODAY. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

PYTHON 3.6 HAS BEEN RELEASED TODAY.

The version 3.6 has introduced some important syntax features — Formatted string literals: These are new kind of string literals, also called f-strings. They are prefixed with ‘f’ and contain certain replacement fields surrounded by {}. The replacement fields are expressions that are evaluated at runtime and formatted using format() protocol. Underscores in numeric literals: For better readability, Python 3.6 brings the ability to use underscores in numeric literals. Now, single underscores can be used between digits and after any base specified. Syntax for variable annotations: Here, we’re talking about the standard for type annotations of function parameters. This adds the syntax for annotating different types of variables Asynchronous generators: Python 3.6 improves the support for native coroutines and sync / await syntax introduced in Python 3.5. Now, one can use await and yield in the same function body. Asynchronous comprehensions: There’s support for using async for in the list, set, dict comprehensions and generator expressions. Also, await expressions are now supported in all types of comprehensions. LIFE SPAN ************8 This version will continue receiving bugfixes every 3-6 months for the next 18 months. After Python 3.7 release, a final 3.6 bug fix will be released. After that, 3.6 is expected to get security updates until December 2021.

8th Dec 2016, 12:51 PM
Sandeep Balachandran
Sandeep Balachandran - avatar
3 Answers
+ 4
glad to hear that
8th Dec 2016, 1:42 PM
Sandeep Balachandran
Sandeep Balachandran - avatar
+ 1
nice
10th Dec 2016, 1:40 PM
Dhirendra Singh
Dhirendra Singh - avatar
+ 1
nice
2nd May 2017, 2:59 PM
Adithya Kishor
Adithya Kishor - avatar