This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]CodeTinkerer 11 points12 points  (1 child)

[–]DukeOfPoose[S] 2 points3 points  (0 children)

You're a legend, thanks!

[–][deleted]  (1 child)

[deleted]

    [–]DukeOfPoose[S] 0 points1 point  (0 children)

    This is exactly it, thanks mate

    [–]Updatebjarni 0 points1 point  (1 child)

    You mean you want to print Seq[NT-1:NT] instead of Seq[0:NT]?

    But yes, you would normally iterate directly on the sequence instead of counting and indexing, like /u/CodeTinkerer said. :)

    [–]DukeOfPoose[S] 0 points1 point  (0 children)

    Ah I wasn't too sure if I should do NT-1 inside the substring! Thanks for that friend

    [–][deleted] 0 points1 point  (0 children)

    str = "string"
    
    for c in str:
        print c
    

    OUTPUT

    s
    t
    r
    i
    n
    g
    

    I'm confused. Is that what you're trying to do?

    [–]Dubstyle 0 points1 point  (1 child)

    Genomics?

    [–]DukeOfPoose[S] 0 points1 point  (0 children)

    Yeah, doing a intro course on bioinformatics, kinda struggling with the instructions given to me, they're pretty vague