Confusion between Char and String

In the picture below, everything is suppose to be strings, but an error “Cannot convert Char to String” occurred.

Maybe this is a bug, or just me not doing it correctly, not sure.

I think you mean push!. The second argument of append! is an iterator - in your case a String, which iterates Char.

1 Like

I see!! Thank you!

Either
append!(a,[“1” * “2”])
or
push!(a,“1”*“2”)
works.