class character:
    charcount = 0
    def __init__(self,name,mastery,gender,weaponType,rating):
        self.name= name
        self.mastery = mastery
        self.gender = gender
        self.weaponType = weaponType
        self.rating = rating
        character.charcount += 1
    def console(self):
        print(self.name,"is a",self.rating,"-star",self.gender,self.mastery,"character","who uses",self.weaponType)
    @classmethod
    def Count(cls):
        print(cls.charcount)

character1=character("Ganyu","ice","Female","Bow","5")
character2=character("Naxida","grass","Female","Book","5")
character1.console()
character2.console()
character.Count()

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: