Question: def file _ split ( f _ in , f _ digits, f _ no _ digits ) : - - -
def filesplitfin fdigits, fnodigits:
Copies the contents of fin to fdigits and fnodigits depending
on the contents of fin:
Lines containing digits are copied to fdigits.
Lines without digits are copied to fnodigits.
Empty lines are ignored.
Use: filesplitfin fdigits, fnodigits
Parameters:
fin source file file handle already open for reading
fdigits file to contain lines with digits from fin file handle
already open for writing
fnodigits file to contain nonempty lines without digits from fn
file handle already open for writing
Returns:
None
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
