What does “:=” mean in Pseudocode? [closed]

Pseudocode examples on Wikipedia usually use := as the assignment operator, like Pascal does (I haven’t found any counterexamples yet).

You can’t use it in Python directly as it would be a SyntaxError:

>>> a := 1
  File "<stdin>", line 1
    a := 1
      ^
SyntaxError: invalid syntax

Use

a = 1

instead.

Leave a Comment