Posts by charles • 21 points
1 post
-
2
votes1
answer81
viewsQ: How do I print the name of an instance in Python?
class Panzer(): def __init__(self): self.life = 100 self.blin = 100 drogo = Panzer() cabal = Panzer() sirius = Panzer() group = [drogo, cabal, sirius] for i in group: print() What should I put on…