0

Which symbol used for mapping variable and value?

14th May 2021, 1:06 PM
Ramya
Ramya - avatar
10 Answers
+ 2
Ramya := is the walrus operator. It allows you to assign a value to a variable in an expression. For example: n = 4 print(n) with walrus operator: print(n:=4) But I also don't know what you exactly mean. Do you want to create a dictionary?
14th May 2021, 2:07 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
What do u means by mapping am not getting (=) this is called assignment operator and == is for checking equality
14th May 2021, 1:17 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Binding of variable with an object is called mapping.
14th May 2021, 1:35 PM
Ramya
Ramya - avatar
+ 1
visph Can you please explain it to me? In this lesson the walrus operator is explained: https://www.sololearn.com/learning/2429/ Is it outdated? Or are we talking about two different things?
14th May 2021, 5:49 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Denise Roßberg sorry, I didn't noticed the change occurred in python 3.8 where it was introduced ^^
14th May 2021, 5:51 PM
visph
visph - avatar
+ 1
visph No problem :)
14th May 2021, 5:52 PM
Denise Roßberg
Denise Roßberg - avatar
0
Is There no such(:=) symbol in python?
14th May 2021, 1:30 PM
Ramya
Ramya - avatar
0
no, in python there is no := operator and giving a value to a variable is called 'assignement'
14th May 2021, 5:29 PM
visph
visph - avatar
0
Thanks to all
14th May 2021, 5:43 PM
Ramya
Ramya - avatar
0
Ramya What do you mean by "binding of variable with an object is called mapping"?
14th May 2021, 7:29 PM
Calvin Thomas
Calvin Thomas - avatar