Skip to content

natos phyton#23

Open
halashalhoub wants to merge 18 commits intonathanielpolley:masterfrom
halashalhoub:master
Open

natos phyton#23
halashalhoub wants to merge 18 commits intonathanielpolley:masterfrom
halashalhoub:master

Conversation

@halashalhoub
Copy link

natos phyton

@nathanielpolley
Copy link
Owner

Very good work, Hala. You have set up a GitHub account. Forked the class materials to your account. Cloned your forked GitHub repository to PyCharm. Executed the required code on PyCharm. Committed changes and code output on PyCharm to your local repository. Pushed those commits to your remote GitHub repository, and opened a pull request, which I am typing on now to review your files.

IBM will be screaming your name, since you made everything run like clockwork.

Tik

Toc

Score: 0.5/0.5

@halashalhoub
Copy link
Author

halashalhoub commented Sep 25, 2023 via email

Copy link
Owner

@nathanielpolley nathanielpolley left a comment

Choose a reason for hiding this comment

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

Complete: assignment 0 beginner
Pending: assignment 0 intermediate

Copy link
Owner

Choose a reason for hiding this comment

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

Very excellent start. The only thing remaining is to remove the parentheses when the user inputs the variables, as you have accidentally created a tuple data type. I will revisit this for a final mark once this change has been made.

Copy link
Owner

@nathanielpolley nathanielpolley left a comment

Choose a reason for hiding this comment

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

Completed: assignment 0 beginner, assignment 0 intermediate

Copy link
Owner

Choose a reason for hiding this comment

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

Immaculate performance. A++

Score: 1.5/1.5

Copy link
Owner

@nathanielpolley nathanielpolley left a comment

Choose a reason for hiding this comment

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

Complete: assignment 0 beginner, assignment 0 intermediate
Pending: assignment 0 advanced

Copy link
Owner

Choose a reason for hiding this comment

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

I appreciate the commitment to your commit here. However, there are just a few more things that need to be done in order for this to reach perfection. First, the DNASeq.count( ) arguments need to be placed within the if statement after user input has been confirmed. Once that happens, you print our the necessary attributes. Secondly, for GC content, when you do .count("GC"), what that does is that it counts how many times the string "GC" appears in your DNA sequence..not the individual Gs and Cs themselves. So what you will want to do is take the individual count of the Cytosine_count and add that to the Guanine_count, and take the sum of all of that and divide it by the total DNAlength variable, multiplied by 100 to get the GC content. Once all of that has been implemented, I can revisit this to assess it for a final grade.

Copy link
Owner

Choose a reason for hiding this comment

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

Everything is complete except the if statement needs to be reworked, as I can input any string and the code will still run. Try adapting your if statement to the first answer on this forum:

https://stackoverflow.com/questions/26703664/check-if-a-string-contains-only-given-characters

Your if case will then check for the invalid condition to which you will print "the DNA sequence is invalid".

You will then invert all of the operations you currently have in your if statement into your else statement in the case that everything is valid in the user input.

Copy link
Owner

Choose a reason for hiding this comment

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

Excellent fix. Full points.
Even though we cannot let errors pass silently..always believe in yourself.

Score: 2/2

Copy link
Owner

@nathanielpolley nathanielpolley left a comment

Choose a reason for hiding this comment

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

Complete: assignment 0 beginner, assignment 0 intermediate
Pending: assignment 0 advanced

Copy link
Owner

Choose a reason for hiding this comment

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

Everything is complete except the if statement needs to be reworked, as I can input any string and the code will still run. Try adapting your if statement to the first answer on this forum:

https://stackoverflow.com/questions/26703664/check-if-a-string-contains-only-given-characters

Your if case will then check for the invalid condition to which you will print "the DNA sequence is invalid".

You will then invert all of the operations you currently have in your if statement into your else statement in the case that everything is valid in the user input.

Copy link
Owner

@nathanielpolley nathanielpolley left a comment

Choose a reason for hiding this comment

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

Complete: assignment 0 beginner, assignment 0 intermediate, assignment 0 advanced
Pending: None

Score: 4/4

Copy link
Owner

Choose a reason for hiding this comment

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

Excellent fix. Full points.
Even though we cannot let errors pass silently..always believe in yourself.

Score: 2/2

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