Menu

How to transform an array to string?

Help
Aga
2005-06-11
2012-09-19
  • Aga

    Aga - 2005-06-11

    Hello!

    I am a beginner user in Python. I have a problem. I am writing a program that runs MySQL query under Python, and I get the result as a tuple of dictionaries. One of the key:value pairs is "Sequence" : array =("xxxx...").
    To get out only the sequence ("xxxx...") I used the following command:
    for record in data: # data is the result of the query
    seq=record["Sequence"].tostring()

    However this loop interfers in some way with the rest of the code in the programme.
    Is there any other way to get out the sequence to have it as a string and not array?
    I would be grateful for any help,

                           Aga
    
     
    • Andy Dustman

      Andy Dustman - 2005-06-12

      Read the User's Guide. You need to modify the conversion dictionary.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.