So hello again. I noticed I have not been asking the best python questions, but pray, bear with me. I have been working with classes to adopt the OOP method, even though I like it not. So now I am trying to import a class from a file in the same directory as my main file, but it just gives me a ModuleNotFoundError (hate how long this name is). So here is the code from the main file:
import class_ ahmed = class_.Name('Ahmed') ahmed.show() And here is the code from the file I want to import:
class Name(): def __init__(self, name): self.name = name def show(self): print(self.name) I know I made some dum dum mistake over here, but what is it?
__init__.pyin the same directory?