0
Which symbol used for mapping variable and value?
10 ответов
+ 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?
+ 1
What do u means by mapping am not getting
(=) this is called assignment operator and == is for checking equality
+ 1
Binding of variable with an object is called mapping.
+ 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?
+ 1
Denise Roßberg sorry, I didn't noticed the change occurred in python 3.8 where it was introduced ^^
+ 1
visph No problem :)
0
Is There no such(:=) symbol in python?
0
no, in python there is no := operator
and giving a value to a variable is called 'assignement'
0
Thanks to all
0
Ramya What do you mean by "binding of variable with an object is called mapping"?