Friday, April 10, 2026

construct course of – Superstar Life Simulator


class Superstar:
    def __init__(self, identify, position):
        self.identify = identify
        self.position = position
        self.relationships = {}
        self.career_progress = 0

    def change_role(self, new_role):
        self.position = new_role
        print(f"{self.identify} is now a {self.position}!")

    def add_relationship(self, superstar, relation):
        self.relationships[celebrity.name] = relation
        print(f"{self.identify} is now {relation} with {superstar.identify}.")

def create_celebrity():
    identify = enter("Enter the superstar's identify: ")
    print("Select a job: Actor/Actress, Musician, Mannequin, Influencer")
    position = enter("Position: ")
    return Superstar(identify, position)

def major():
    print("Welcome to Superstar Life Simulator!")
    superstar = create_celebrity()
    
    whereas True:
        print(f"{superstar.identify} as a {superstar.position}.")
        motion = enter("What would you love to do? (change position / add relationship / give up): ").decrease()
        
        if motion == "change position":
            new_role = enter("Enter new position: ")
            superstar.change_role(new_role)
        elif motion == "add relationship":
            friend_name = enter("Enter the identify of the superstar to attach with: ")
            relation = enter("Enter relationship sort (pal, rival, and so on.): ")
            pal = Superstar(friend_name, "Undefined Position")  # placeholder for different superstar
            superstar.add_relationship(pal, relation)
        elif motion == "give up":
            break
        else:
            print("Invalid motion. Please strive once more.")

if __name__ == "__main__":
    major()

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest Articles