I tried inserting a snippet in a julia notebook (julia 1.4). The very first one I tried was:
s = 0
for i = [1 2 5 100 -1 5]
s = s + i
@printf("i = %4d → s = %4d\n", i, s)
end
and it didn't work due to @printf being deprecated and removed from the language.