#!/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 Goto Github PK
Name: lewislovelock
Type: User
Company: @IGB
Bio: I majored in molecular biology, taught myself coding, and now work as a software developer at BGI.
Twitter: lewis1ove1ock
Location: Thailand