Conversation
|
Very good, Maureen. Everything is good to go on your side. One of the great benefits of learning to code on your own is that you can improve existing software to have it do what you want it to do rather than needing to wait until the next version comes out and hope that it has the desired functionality. Score: 0.5/0.5 |
Fixed intermediate 1 instructions
nathanielpolley
left a comment
There was a problem hiding this comment.
Complete: assignment 0 beginner
Pending: assignment 0 intermediate
There was a problem hiding this comment.
Very interesting implementation of the if statement. I hadn't thought of that, but it works, nonetheless. Also, I believe there was something in the directions about GC content calculation. If you could add that for me, that would be great, and I will revisit this for a final mark as soon as you do so.
nathanielpolley
left a comment
There was a problem hiding this comment.
Completed: assignment_1_advanced, assignment_1_beginner
There was a problem hiding this comment.
Very good handling on instantiating and manipulating dictionaries. My only critique would be to set both the length of the initial empty dictionary as the length of the lines2 object so that everything can be the same within your code, and it can work for any length of file being read in. Additionally, for the for the final for loop, you can set it to for i in range(len(lines2)) so it will run for exactly how many lines there are, because, as we see, it outputs at the end a blank entry for space '60', as well as a value for a key of '0'. If you would like an added challenge, see if you can make the output of the "mismatch detected" entries a list of all of the actual mismatches that occur in the line. Overall, very well done.
Score: 2/2
There was a problem hiding this comment.
You accomplished all of the objectives perfectly on this task. If you would like a more shorthand approach (without for loops) to calculate average, you can simply do sum(list)/length(list). Additionally, for minimum and maximum, you can use the min() and max() functions to get the same result. This is especially helpful if you are working with a very large dataset that will take time to iterate through all of the elements.
Score: 0.5/0.5
nathanielpolley
left a comment
There was a problem hiding this comment.
Completed: assignment_0_beginner, assignment_0_intermediate, assignment_0_advanced, assignment_1_beginner, assignment_1_intermediate, assignment_1_advanced
Final score: 8/8
There was a problem hiding this comment.
Excellent handling of all the possible ways that the user could enter something incorrectly.
Score: 1.5/1.5
There was a problem hiding this comment.
Everything has been accomplished here. My only advice would be to let the user know how to exit the data entry loop. On this, I needed to hit "return" without providing anything in order to terminate the program. Perhaps, requiring the user to type "stop" or "end" would be more explicit so long as it is explained in the prompt.
Score: 1.5/1.5
No description provided.