Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completed MP1 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Completed MP1 #7

wants to merge 1 commit into from

Conversation

ViktoriaW
Copy link

yay

Copy link

@branchwelder branchwelder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Your code is well formatted and easy to understand, you chose reasonable variable names, and solved the problems appropriately.

@@ -45,8 +53,13 @@ def get_reverse_complement(dna):
>>> get_reverse_complement("CCGCGTTCA")
'TGAACGCGG'
"""
# TODO: implement this
pass
complement_list= [] #creating empty complement list

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to comment every line - just comment the things that might be unclear to someone reading your code (or if you want to document something important).

return orf
else:
orf = orf + codon
return dna[:]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dna means the same thing as dna[:]. Here you're essentially taking a slice of the whole string, when you could just return the string. (This doesn't change the meaning of your code at all, however.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants