Can I print an array without type?

With a more precise type specified up front (good practice!), Julia works the same way:

julia> A = String[]
String[]

julia> push!(A, "a"); push!(A, "b"); println(A)
["a", "b"]

julia> @show A;
A = ["a", "b"]
3 Likes