Walrus Operators Help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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())

30th Apr 2021, 3:04 PM
NoaMarcos0001
6 Answers
+ 3
print(a:=input()) but I see no good use for walrus operator here. Please others correct me or agree.
30th Apr 2021, 3:31 PM
Oma Falk
Oma Falk - avatar
+ 1
just type := in the blank space
19th Jul 2021, 11:07 AM
Nuzhat Mahdiyat
0
Instate of "a" I had to write "name". It was quite confusing (it was only for learning what walrus is) Thanks :)
30th Apr 2021, 3:55 PM
NoaMarcos0001
0
Can anyone help me as well? I have tried everything suggested here and nothing works ...
6th Jul 2021, 12:53 PM
Vulpe Cosmin
Vulpe Cosmin - avatar
0
Just add := in the blank
31st Jul 2021, 2:45 PM
EMMANUEL IMANIRAKIZA
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?
18th Nov 2021, 12:23 AM
Anish Krishnamurthy
Anish Krishnamurthy - avatar