Trying to convert the following block of perl to python
for($row = 0, $mytype = 500; $row < $filearray_count; $row++) {
if ($_ eq $filearray[$row][0]) {
$mytype = $filearray[$row][1];
print "$row, $mytype, $_ \n";
break;
And here is the python attempt. I'm not sure if I'm dealing with $mytype = 500 in the same way
for member in files:
for x in range(0, filearray_count):
mytype = 500
if member in filearray[x][0]:
mytype = filearray[x][1]
#print(x, mytype, member)
break