+ 2
Walrus Operators Help
I have this exercise and I have to complete the blanks, but I don't really know how to do it. (Is one of the exercises on basic python, I got stucked on it) Fill in the blanks to produce code which takes text as input, assigns it to the name variable, and outputs it. print( input())
6 Answers
+ 3
print(a:=input())
but I see no good use for walrus operator here.
Please others correct me or agree.
+ 1
just type := in the blank space
0
Instate of "a" I had to write "name". It was quite confusing (it was only for learning what walrus is)
Thanks :)
0
Can anyone help me as well? I have tried everything suggested here and nothing works ...
0
Just add := in the blank
0
I am having an issue with this problem. I have tried all of the suggestions listed above, but nothing is working. It keeps saying that it is wrong. Are there any other possible solutions that could work for this problem?