Function that takes a list of multiple strings and tuples
<p>So, I want to create a function that takes a list of multiple strings and tuples, and what it does is, if its a string, it just prints the string, but if its a tuple, the tuple takes an integer and a string and it multiplies them.</p>

<p>Example:</p>

<pre><code>print(something(["1stString", "2ndString", (3, "Pie"), (4, "Soda")]))
</code></pre>

<p>and it prints:</p>

<pre><code>1stString
2ndString
Pie
Pie
Pie
Soda
Soda
Soda
Soda
</code></pre>

<p>My miserable attempt:</p>

<pre><code>def something(s):
    for x in s:
        if isinstance(s, str):
            print(s)
        if isinstance(s, tuple):
            x = tuple[0] * tuple[1]
        print(x)
    exit()
</code></pre>

<p>This works for the strings but not for the tuples.</p>

<p>It prints out:</p>

<pre><code>1stString
2ndString
(3, 'Pie')
(4, 'Soda')
</code></pre>

<p>What am I doing wrong?</p>

<p>One more thing.
How about if I want it to print it out as a list?</p>

<p>Like this:</p>

<pre><code>['1stString', '2ndString', 'Pie', 'Pie', 'Pie', 'Soda', 'Soda', 'Soda', 'Soda']
</code></pre>
