Python Class instance variables printing out as tuples instead of string
<p>I am creating the following <code>class</code> within python. But when I create an instance of the <code>class</code> and print out the <code>imdb_id</code> value. It prints it as a <em>tuple</em>. </p>

<p>What am I doing wrong? I would like it to simply print out the <em>string</em>.</p>

<pre><code>class Movie(object):
    """ Class provides a structure to store Movie information """

    def __init__(self, imdb_id, title = None, release_year = None, rating = None, run_time = None, genre = None, director = None, actors = None, plot = None, awards = None, poster_image = None, imdb_votes = None, youtube_trailer = None):
        self.imdb_id = imdb_id,
        self.title = title,
        self.release_year = release_year
        self.rating = rating,
        self.run_time = run_time,
        self.genre = genre,
        self.director = director,
        self.actors = actors,
        self.plot = plot,
        self.awards = awards,
        self.poster_image = poster_image,
        self.imdb_votes = imdb_votes,
        self.youtube_trailer = youtube_trailer
</code></pre>

<p>Here is how I am initiating the class:</p>

<pre><code>import media
toy_story=media.Movie("trtreter")
toy_story.imdb_id
</code></pre>

<p>Why are you adding a comma at the end of most statements? That creates a tuple. Remove the trailing comma.</p>

<p>Really, why are you doing that?</p>

python python-2.7