+ 1
explain walrus code
print (num:=int(input())) how this works
2 Answers
+ 8
The walrus operator is a bit controversial and not very commonly used, but it's basically for both evaluation and assignment. This code prints the number inputted and also saves it to the variable called "num".