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
Get step-by-step solutions from verified subject matter experts
