+ 7

What's new in Python 3.7

This just in: https://docs.python.org/3.7/whatsnew/3.7.html release expected in a year https://www.python.org/dev/peps/pep-0537/ BTW Python 3.6.1 came out on March 21, 2017. Version 3.6 came out in December, 2016 https://docs.python.org/3.6/whatsnew/3.6.html with some cool new features, e.g. f-strings.

1st Jun 2017, 2:22 PM
David Ashton
David Ashton - avatar
1 Odpowiedź
+ 3
Although QPython and the SL Code Playground both support the str.format() method, they don't support the new shorter f-strings (formatted string literals) which work fine in IDLE with version 3.6 installed. my_name = "Sir Robin of Camelot" print(f"My name is {my_name}.") # only works in IDLE print("My name is {}.".format(my_name)) # works in IDLE, QP3 and SL
1st Jun 2017, 10:13 PM
David Ashton
David Ashton - avatar