class Gun:
def __init__(self, name, price, damage):
self.name = name
self.price = price
self.damage = damage
def print_properties(self):
print('Name of gun is {}'.format(self.name))
print('Price of gun is {}'.format(self.price))
print('Damage by gun is {}'.format(self.damage))
gun_a = Gun('m4', 5000, 10)
gun_b = Gun('shotgun', 3500, 35)
guns = [gun_a, gun_b]
guns[0].print_properties()