Python converts long number to float I believe ( example: x.xxxe+yy)
<p>I'm doing a little script with python and twitter, and it's working fine and everything, except for one little thing.</p>

<p>When I'm importing the id of the tweets of a certain user, I print them out to see if I'm getting correct information, and I am, when I print it out it comes as something like this:</p>

<pre><code>330090997180665856
</code></pre>

<p>(some random tweet from cnn.) However, I'm using texttable to print them into a table next to the retweet count of each of the tweets I'm getting, and that's working fine as well. However in the column where the tweet id goes it shoes this:</p>

<pre><code>3.301e+17
</code></pre>

<p>I'm assuming this is because python recognized this as a long and made it into a float for some reason. I transform it into a string, or an int right before I append it to the list of tweets, but the problem is still there, and I don't know what to do, I've tried doing long(tweet_id) but that doesn't work either.</p>

<p>There might be some ridiculously easy solution but I havent found any :/</p>

<p>EDIT: This is what my code looks like:
some OAuth before but didn't put it here</p>

<pre><code>def main():
USER_ID = raw_input("Enter User Id: ")
COUNT = input("How many tweets to analyze: ")
OUT_FILE_NAME = OUT_DIR + 'output_file_test' + USER_ID + '.txt'

tweet_list = []
retweet_count_list = []
total_retweets = 0
#tweet_cursors = Cursor(api.user_timeline, id = USER_ID).items(COUNT)
while True:
    try:
        for tweet_cursor in Cursor(api.user_timeline, id = USER_ID).items(COUNT):
            print "cursoring"
            x = str(tweet_cursor.id)
            tweet_list.append(x)
            print x
            y = tweet_cursor.retweet_count
            retweet_count_list.append(y)
            print y
            total_retweets = total_retweets + y

        break
    except TweepError, e:
        some error handling


avg_retweet = total_retweets / COUNT
print "The Average retweets per tweet was: "
print avg_retweet
header = ["Tweet Id", "Retweet Amount"]
tab.header(header)
tab.set_cols_width([30,30])
for i in range(0, COUNT):
    one = str(tweet_list[i])
    two = str(retweet_count_list[i])
    tab.add_row([one, two])
output_table = tab.draw()
print output_table    
</code></pre>
