Question: My code outputs the correct answer when I call only the 2nd function. However, if I call the 1st function and then the 2nd, only

My code outputs the correct answer when I call only the 2nd function. However, if I call the 1st function and then the 2nd, only the 1st function outputs what it's supposed to (the 2nd returns a blank line). Can anyone see any problem with the code and explain why calling the 2nd function after the first doesn't work?

My code outputs the correct answer when I call only the 2nd

Calling both function. However, if I call the 1st function and then the 2nd,

Outputs just the string from the first function and not the second: only the 1st function outputs what it's supposed to (the 2nd returns

print(createCodonString(myFile)) print(createReverseString(myFile)) gagacgtacttgttgttttaaataaacgaacaaattaaaatgtctgataatggaccccaa

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!