Question: I was running this code and got the following error. Traceback ( most recent call last ) : File / home / runner /

I was running this code and got the following error.
Traceback (most recent call last):
File "/home/runner/local/submission/main.py", line 149, in
if test_case.execute(test_feedback):
File "/home/runner/local/submission/LCSTestCase.py", line 33, in execute
actual = user_matrix.get_longest_common_subsequences()
File "/home/runner/local/submission/LCSMatrix.py", line 46, in get_longest_common_subsequences
self._find_lcs(self.row_count, self.column_count, "", result)
File "/home/runner/local/submission/LCSMatrix.py", line 54, in _find_lcs
if self.str1[i -1]== self.str2[j -1]:
AttributeError: 'LCSMatrix' object has no attribute 'str1'

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 Programming Questions!