0

I have pseudo code am trying to implement in python but I cant seem to remember what p ← 0 would mean in logic or calculus.

Cœur
  • 37,241
  • 25
  • 195
  • 267
philo
  • 121
  • 1
  • 9

2 Answers2

3

It usually means store the value 0 on the variable p

In python it would be p = 0

Davide
  • 301
  • 1
  • 8
  • True... I was really thinking math now :) – philo Jun 03 '15 at 08:55
  • 1
    In fact, the arrow is more precise than `=` because `=` could be confused with mathematical compare operator. Unfortunately there was not left arrow character available during development of programming languages. ;-) – dlask Jun 03 '15 at 08:55
1

It is equivalent to the assignment operator, p <- 0 in python is expressed as p = 0.

Will Vousden
  • 32,488
  • 9
  • 84
  • 95
PetMarion
  • 147
  • 3
  • 14