The value of the <- symbol in Python

I am reading a Python book that uses a character

<-

It seems to be used interchangeably with the = sign. Is this a common symbol to explain this? I have never seen it used elsewhere. enter image description here

+4
source share
3 answers

This is not a symbol, it simply shows that when completing a task using '=' you put the value on the right into the variable on the left.

+6
source

This is just an example of pseudocode, not Python syntax.

+3
source

a <- b ( a < -b) " b",

>>> a = -5
>>> b = 3
>>> a <- b
True

>>> a = 3
>>> b = 4
>>> a <- b
False

, , , , , , " ". 😊

+3
source

Source: https://habr.com/ru/post/1598531/


All Articles