class AboutMe:
def __init__(self, name, age, location, born):
self.name = name
self.age = age
self.current_location = location
self.origin = born
self.welcome = """
I like to write code and learn new things in my free time.
Feel free to look through my projects.
- More to come soon!
"""
def get_info(self):
return {
"name": self.name,
"age_during_last_edit": self.age,
"location": self.current_location,
"originally_from": self.origin
}
def __str__(self):
return self.welcome
me = AboutMe("Marc", 22, "UK", "ES")
print(me)
print(me.get_info())
anon0x19 / wiggle-cube Goto Github PK
View Code? Open in Web Editor NEWFirst game I made with C# using unity