#!/usr/bin/python
# -*- coding: utf-8 -*-
from typing import List
class Profile:
def __init__(self, name: str, role: str, languages: List[str], hobbies: List[str], skills: List[str], learning: List[str]):
self.name = name
self.role = role
self.languages = languages
self.hobbies = hobbies
self.skills = skills
self.learning = self.skills + learning
def say_hi(self):
print(f"π Hi there, my name is {self.name} and I am a {self.role}.")
print(f"π¬ I speak {', '.join(self.languages)} and my hobbies include {', '.join(self.hobbies)}.")
print(f"π§π»βπ» Skills {', '.join(self.skills)}.")
print(f"π Currently learning: {', '.join(self.learning)} π€©.")
print("π Thanks for dropping by, hope we will build something that makes the world better π.")
me = Profile(
name="Lewis Liu",
role="Software Engineer",
languages=["Chinese", "English"],
hobbies=["Codingπ§βπ»", "Hip-hopπ΅", "Basketballπ"],
skills=["Python", "React", "Machine Learning", "Linux"],
learning=["Rust", "Golang", "Penetration Testing"]
)
me.say_hi()
lewislovelock / leetcode-copilot Goto Github PK
View Code? Open in Web Editor NEWwhere I store my journey on LeetCode, with the help of GitHub Copilot.