Cool New Features in Python 3.6

Veröffentlicht am: 20 Dezember 2016
auf dem Kanal: Real Python
27,230
491

https://dbader.org/python-tricks ► Pick up the newest features in Python 3 with bite-sized code snippets and tips

Python 3.6 adds a couple of new features and improvements that’ll affect the day to day work of Python coders. In this video I’ll give you an overview of the new features I found the most interesting and the ones that will make Python programming that much more enjoyable.

→ https://dbader.org/blog/cool-new-feat...

1) Improved numeric literals

This is a syntactic tweak that makes numeric literals easier to read. You can now add underscores to numbers in order to group them to your liking.

2) String interpolation

Python 3.6 adds yet another way to format strings called Formatted String Literals. This new way of formatting strings lets you use embedded Python expressions inside string constants.

3) Type annotations for variables

In Python 3.6 you can use a syntax similar to type annotations for function arguments to type-hint standalone variables. Type-checking is purely optional and you’ll need a tool like Mypy for that, which basically works like a code linter.

FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery

SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube

* *

► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com

Want to learn Python with me? Check out the list below!

FREE Python Tutorials & News:
» Python Tutorials: https://dbader.org
» Python News on Twitter:   / @dbader_org  
» Weekly Tips for Pythonistas: https://dbader.org/newsletter
» Subscribe to this channel: https://dbader.org/youtube


Auf dieser Seite können Sie das Online-Video Cool New Features in Python 3.6 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Real Python 20 Dezember 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 27,230 Mal angesehen und es wurde von 491 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!