Question: Write the function is _ valid _ line _ data ( line _ data _ tuple ) that returns True if all the values in
Write the function isvalidlinedatalinedatatuple that returns True if all the values in the data tuple are valid; otherwise it returns False.
Note:
Data values are valid if and only if they are not or That is and are considered to be invalid.
You must include all your code for part so far.
Your isvalidlinedata function will typically be used to process the data generated by your datatuplefromline function.
You must include your working datatuplefromline function some tests will call it
Your function must be general enough to handle any number of values in the data tuple.
That is we will test it with different length tuples.
For example:
Test Result
line 'SCEINTHermosa Beach,CA
datatuple datatuplefromlineline
result isvalidlinedatadatatuple
printresult
True
line 'SCEINTDESERT HOT SPRINGS,CA
datatuple datatuplefromlineline
result isvalidlinedatadatatuple
printresult
False
data SCEINT
result isvalidlinedatadata
printresult
True
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
