Software & Machine Learning Engineer
#!/usr/bin/python
# -*- coding: utf-8 -*-
class Human:
def __init__(self):
self.name = None
self.role = None
self.places_lived = []
self.language_spoken = ["en_US"]
self.job_searching = False
self.current_location = None
def introduce_self(self):
print((f"Hi! My name is {self.name}. I am a {self.role} that speaks {len(self.language_spoken)}"
f" langauges and have lived in {len(self.place_lived)} countries."))
jarrad = Human()
jarrad.name = "Jarrad Jinks"
jarrad.role = "Software Engineer"
jarrad.place_lived = ["United States", "Thailand", "Nepal", "South Korea", "Japan", "Colombia"]
jarrad.language_spoken.append("ja_JP")
jarrad.current_location = "Medellin, Colombia"
jarrad.introduce_self()
>>> Hi! My name is Jarrad Jinks. I am a Software Engineer that speaks 2 langauges and have lived in 6 countries.