Question: This piece of Python program is the suggested solution for my prior question fh = input (Enter your data: ) print ( Input fh is:

This piece of Python program is the suggested solution for my prior question

fh = input ("Enter your data: ") print (" Input fh is: " +fh) n = 0 fh_list = fh.split() for line in fh_list: print(line) if line.startwith(" * "): n += 1 print (n)

However, for this data (A)

*gi|142022655|gb|EQ086233.1| *gi|142022655|gb|EQ086233.1| *gi|142022655|gb|EQ086233.1| *gi|142022655|gb|EQ086233.1| *gi|142022655|gb|EQ086233.1| *gi|142022655|gb|EQ086233.1|

The program gave 0 count!!!

And for this data (B)

*gi|142022655|gb|EQ086233.1|*gi|142022655|gb|EQ086233.1|*gi|142022655|gb|EQ086233.1|*gi|142022655|gb|EQ086233.1|*gi|142022655|gb|EQ086233.1|*gi|142022655|gb|EQ086233.1|

The program still gives 1 count.

I need the program which gives result count 6 with data (A)

I need

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!