The Walrus Operator - New in Python 3.8 - Python Tutorial

Pubblicato il: 09 febbraio 2020
sul canale di: Patrick Loeber
2,563
89

In this Python Tutorial I show you the new assignment expression also known as the walrus operator. This Python feature is new in Python 3.8. It can be used to evaluate an expression and simultaneously assign it to a variable. This can be useful to simplify the code in some cases. I will show you the syntax of the walrus operator and two useful examples.

~~~~~~~~~~~~~~ GREAT PLUGINS FOR YOUR CODE EDITOR ~~~~~~~~~~~~~~
✅ Write cleaner code with Sourcery: https://sourcery.ai/?utm_source=youtu... *

📚 Get my FREE NumPy Handbook:
https://www.python-engineer.com/numpy...

📓 Notebooks available on Patreon:
  / patrickloeber  

⭐ Join Our Discord :   / discord  

If you enjoyed this video, please subscribe to the channel!

The code can be found here:
https://github.com/patrickloeber/pyth...

You can find me here:
Website: https://www.python-engineer.com
Twitter:   / patloeber  
GitHub: https://github.com/patrickloeber

#Python

----------------------------------------------------------------------------------------------------------
This is a sponsored link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏


In questa pagina del sito puoi guardare il video online The Walrus Operator - New in Python 3.8 - Python Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Patrick Loeber 09 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,563 volte e gli è piaciuto 89 spettatori. Buona visione!