Discover how to work with arrays in Julia, including adding elements and iterating through them.
fruits = ["apple", "banana", "cherry"]
push!(fruits, "orange")
println("Fruits:")
for fruit in fruits
println(fruit)
end
Discover how to work with arrays in Julia, including adding elements and iterating through them.
fruits = ["apple", "banana", "cherry"]
push!(fruits, "orange")
println("Fruits:")
for fruit in fruits
println(fruit)
end