tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code04:14

Python walrus operator := 🦦

Bro Code ↗

From the creator

Python walrus operator assignment expression tutorial example explained #python #walrus operator # walrus operator := # new to Python 3.8 # assignment expression aka walrus operator # assigns values to variables as part of a larger expression # happy = True # print(happy) # print(happy := True) # foods = list() # while True: # food = input("What food do you like?: ") # if food == "quit": # break # foods.append(food) foods = list() while (food := input("What food do you like?: ")) != "quit": foods.append(food)

Published 2021-01-04 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code