Understand immutability

Not sure if this is helpful to you but this something which is easy to miss as a beginner.

a = 1

for i <- 1..5 do
  a = a + 1
  IO.puts(" #{i}) #{a}")
end

IO.puts("After `for` #{a}")

You can compare the output for similar code in other language and see the difference.