I have a file called cl.py where I have create a class called Student
. Here is the code:
class Student:
def __init__(self, name, surname):
self.name = name
self.surname = surname
I have another file called mat.py where I tried to create an object of that class called student1
, the code is this:
from cl import Student
student1 = Student("John", "Baptiste")
print(student1)
The problem is that when I run it on the terminal, I get this:
cl.Student object at 0x04183450
I also get a message that says: "cl could not be resolved ,Pylance(reportMissingImports)"