walrus.md

January 22, 2023 ยท View on GitHub

Walrus

Modify the following code so it will use the walrus operator:

x = 50
y = x - 20
if y == 30:
    print("super")

Solution

Click here to view the solution