Python static method code snippets

Posted by

Hello Coders,

We have discussed the python static method on the Youtube channel. If you go through this, you will have a clear understanding of the static method, and also it will help to crack the interviews.

Please find the video Link here.

Please find the video of the Static basic example Link Here.

# basic example

class Student:

    @staticmethod
    def marks(x)
        print(f"mark of the student {x}")
Student.marks(30)
mark of the student 30

Leave a Reply

Your email address will not be published.