after importing pygame, when we convert an image an assign it to a variable, what is the type of that variable?
aanchal_1
0
Newbie Poster
Recommended Answers
Jump to PostAdd
print(type(variable)) # this can be useful too print(variable.__class__)
there is also
import inspect print(inspect.getmro(variable.__class__))
to get the ancestor classes.
All 4 Replies
Gribouillis
1,391
Programming Explorer
Team Colleague
aanchal_1
0
Newbie Poster
Gribouillis
1,391
Programming Explorer
Team Colleague
aanchal_1
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.