Was trying to decide between this if else block or the one liner
`sum = num + sum if last and last + 1 == num else num`