Question: The code is written in python Write a function row_ruler that consumes a Pointset and a positive integer row number i in the range 0

The code is written in python

Write a function row_ruler that consumes a Pointset and a positive integer row number i in the range 0 i

When using a pointset corresponding to that of points1.txt (and stored in the pointset set1), row_ruler(set1, 0) would return None, and row_ruler(set1, 1) would return verylong.

example of points1.txt:

The code is written in python Write a function row_ruler that consumes

So take the example of points1.txt, for row_ruler(set1, 0), it would return None because there is no features (strings) in row 0 of pointset 1. row_ruler(set1, 1) would return verylong since in row 1 of set1 in point1.txt, "verylong" has the longest string length.

Two samples files have been provided. The contents ofthe sample points1.txt: 1 2 first 2 3 second 1 5 very long 2 4 test. 1 6 test2 The contents of the sample points2.txt: 3 3 a 1 2 b 65 c 2 3 d 1 1 e 1 2 f

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!