There could be a few reasons why you are encountering an ImportError message when trying to import the "student" class from test19test.py into test19(Inheritance).py. Here are a few possible causes and solutions:
The file test19test.py does not exist or is not in the same directory as test19(Inheritance).py. Make sure that the file is present and is located in the same directory as the file you are trying to import it into.
The name of the file is incorrect or misspelled. Check that you are using the correct file name and that it is spelled correctly.
The name of the class is incorrect or misspelled. Check that you are using the correct name of the class that you want to import.
The student class is not defined in the test19test.py file. Check that there is a class defined in the file with the name "student".
There are syntax errors in the test19test.py file that prevent it from being imported. Check for any syntax errors in the file that may be preventing it from being imported.
Once you have identified the problem, correct it and try importing the class again.
Asked: 2023-05-04 18:21:26 +0000
Seen: 9 times
Last updated: May 04 '23