# Why does Julia think a vector is a string?

**URL:** <https://discourse.julialang.org/t/why-does-julia-think-a-vector-is-a-string/67078>\
**Category:** New to Julia\
**Created:** [August 27, 2021, 3:35am UTC](https://discourse.julialang.org/t/why-does-julia-think-a-vector-is-a-string/67078 "2021-08-27T03:35:00Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 27, 2021, 11:38am UTC](https://discourse.julialang.org/t/why-does-julia-think-a-vector-is-a-string/67078/34 "2021-08-27T11:38:55Z")

</div>

You’re confusing strings and arrays. You have an array with mixed elements:

> [@dgpdx](#):
>
> Any[“[1,2,3]”, [1, 2, 3]]

The first element is a printed representation of a string (`"[1,2,3]"`), the latter is a printed representation of an array (`[1, 2, 3]` or

```julia
[1, 2, 3]

```

doesn’t matter, as it’s _just how julia prints the array to the screen_).

* * *

Please enclose your code in triple backticks when posting to make it easier for people to read it and follow along. [This makes it easier for use to help you.](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

---

_[View the full topic](https://discourse.julialang.org/t/why-does-julia-think-a-vector-is-a-string/67078)._
