from datetime import date
class PhoenixizFire:
def __init__(self,birthdate):
self.first_name = "Edwyn"
self.last_name = "Beauvery"
self.age = self.calc_age(birthdate)
self.country = "France"
self.working = self.job()
self.hobbies = list("Video Games","Movies","Judo","Archery","Science","3D printing","Cosplay","Cars","Motorbikes")
def __repr__(self):
return self.first_name+" "+self.last_name
def hello(self):
return "Hello world, my name is {}, welcome to my profile !".format(self.first_name)
def calc_age(self,born):
today = date.today()
return today.year - born.year - ((today.month, today.day) < (born.month, born.day))
def job(self):
data = dict()
data['COMPANY_TYPE'] = "Accounting Firm"
data['YEARLY_WAGE'] = 32000
data['JOB_NAME'] = "Junior Data, AI & RPA Dev"
data['JOB_TOOLS'] = set("Python","Flask","Selenium","UiPath","WinDev","...")
return data