r/codereview • • 2d ago

My first programme in python

class Student:
def __init__(self,name,marks):
self.name = name
self.marks = marks


def introduce(self):
    print("I am {self.name()} and I scored {self.marks()}")
    
    s1 = Student("Dave",95)
    s1.introduce()
1 Upvotes

0 comments sorted by