Skip to content
View HaneulCheong's full-sized avatar

Highlights

  • Pro

Block or report HaneulCheong

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
HaneulCheong/README.md
above.py
class Developer:
    def __init__(
        self, name: str, languages: dict[str, str], favorite: str
    ) -> None:
        if favorite not in languages.keys():
            raise ValueError(favorite)

        self.name: str = name
        self.languages: dict[str, str] = languages
        self.favorite: str = favorite

    def hello(self) -> list[str]:
        return [
            f"Hi! My name is {self.name}.",
            f"I like to code in {self.favorite}.",
        ]

    def __repr__(self) -> str:
        return f"<Developer '{self.name}'>"
import above


if __name__ == "__main__":
    me: above.Developer = above.Developer(
        name="Haneul Cheong",
        languages={
            "Python": "Intermediate",
            "C#": "Basic",
            "Kotlin": "Beginner",
            "Rust": "Gave up",
            "C": "Barely Remembering Anything",
        },
        favorite="Python"
    )

    for sentence in me.hello():
        print(sentence)

Pinned Loading

  1. Project-Twilight/golden-oak-library Project-Twilight/golden-oak-library Public

  2. East-Asia-Flavor-Pack/East-Asia-Flavor-Pack East-Asia-Flavor-Pack/East-Asia-Flavor-Pack Public

    Community-driven Victoria 3 flavor pack for the East Asian region

    Jupyter Notebook 6 5