Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python getting class name

class Vehicle:
    def name(self, name):
        return name

v = Vehicle()
print(v.__class__.__name__)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #class
ADD COMMENT
Topic
Name
1+1 =