Python's walrus operator

Published: 06 July 2022
on channel: Python Morsels
611
42

Python's "walrus operator" is used for assignment expressions. Assignment expressions are a way of embedding an assignment statement inside another line of code.

Read an article version of this video at https://pym.dev/using-walrus-operator/

Find more Python screencasts at https://pym.dev/screencasts/

00:00 An assignment followed by a conditional check
00:59 Embedding an assignment into another line with assignment expressions
02:02 Another common use case for the walrus operator
03:23 Recap


On this page of the site you can watch the video online Python's walrus operator with a duration of hours minute second in good quality, which was uploaded by the user Python Morsels 06 July 2022, share the link with friends and acquaintances, this video has already been watched 611 times on youtube and it was liked by 42 viewers. Enjoy your viewing!