Build a Planet Class - Build a Planet Class

Tell us what’s happening:

Please help. Why I can not pass the 18th and 19th requests? kindly advises.

Your code so far

class Planet:
    def __init__(self, name, planet_type, star):
        if not all(isinstance(arg,str) for arg in (name,planet_type,star)):
            raise TypeError('name, planet type, and star must be strings')
        if not all(arg.strip() for arg in(name, planet_type,star)):
            raise ValueError('name, planet_type, and star must be non-empty strings')
        self.name = name
        self.planet_type = planet_type
        self.star =star

    def orbit(self):
        return f'{self.name} is orbiting around {self.star}...'

    def __str__(self):
        return f'Planet: {self.name} | Type: {self.planet_type} | Star: {self.star}'

if __name__ == '__main__':
    planet_1 = Planet('Mars','Terrestrial','Sun')
    print(planet_1)
    result_1 = planet_1.orbit()
    print(result_1)

    planet_2 = Planet('Earth','Terrestrial', 'Sun')
    print(planet_2)
    result_2 = planet_2.orbit()
    print(result_2)

    planet_3 = Planet('Venus', 'Terrestrial','Sun')
    print(planet_3)
    result_3 = planet_3.orbit()
    print(result_3)
   

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Build a Planet Class - Build a Planet Class

This is causing a problem:

if __name__ == '__main__':

It’s not asked for in the instructions so you should not add it.