I found this little program for a game in a book.
class Tank (object):
def _init_(self, name):
self.name = name
self.alive = True
self.ammo = 5
self.armor = 60
It is named tank.py
When I import it in python and I try to add
my_tank = Tank("Bob")
Python gives an error
NameError: name 'Tank' is not defined
Does anyone has an idea to solve this problem