Answers for "python get object class"

6

python get type class name

type(x).__name__
Posted by: Guest on June-15-2020
1

python get object class

user = User()
type(user).__name__
>> 'User'
Posted by: Guest on May-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language