Why is my python list vertical?
<p>Using python 3 and jupyter notebook (I have to, for class). </p>

<p>I have a function that creates a list by looping a number of times and appending a randomly chosen element from another list. But when I use the function, the list it gives displays each element on a new line. Why? Can I change it?</p>

<p>The code:</p>

<pre><code>def create_board(length=32,seed=0,types=2):
"""
Creates a one-dimensional game board of randomly placed
letters, using as many as are specified.
"""

    if types&gt;26:
        print("No, try a number smaller than 27.")

    else:    

        board = []
        letters = ["A","B","C","D","E","F","G","H","I","J","K","L","M",
                  "N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]


        for i in range(length):
            val=random.randint(0,(types-1))
            board.append(letters[val])


        return board
</code></pre>

<p>And then both</p>

<pre><code>    print(create_board())
</code></pre>

<p>and</p>

<pre><code>    create_board()
    board
</code></pre>

<p>put out the created list, but with each element on a new line:</p>

<p>['B',</p>

<p>'B',</p>

<p>'A',</p>

<p>'B',</p>

<p>'A',</p>

<p>and so on.</p>