Walrus Operator Use Cases
00:04 In the next sections of the course, you’ll see several examples where the walrus operator can simplify your code. A general theme in all these examples is that you’ll avoid different kinds of repetition.
00:16 Repeated function calls can make your code slower than necessary. Repeated statements can make your code hard to maintain. Repeated calls that exhaust iterators can make your code overly complex.
Become a Member to join the conversation.