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
In questa pagina del sito puoi guardare il video online Cool New Features in Python 3.6 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Real Python 20 dicembre 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 27,230 volte e gli è piaciuto 491 spettatori. Buona visione!