Hey, I'm Ramindu Abeygunawardane!
class WhoAmI:
username = 'RaminduA'
location = 'Galle, Sri Lanka'
current_education = {
'Institutes': ["IJSE", "University of Moratuwa"],
'Majors': ["Software Engineering", "Computer Science & Engineering (Data Science)"]
}
currently_learning = {
1: "C++",
2: "React Native",
3: "Dart/Flutter"
}
fun_fact = "Passion for Chillies 🌶️!"
hobbies = [
'Music 🎶',
'Chilling 😎',
'Coding 💻',
'Sci-Fi Movies 🎥'
]
def get_city(self):
return "Galle, Sri Lanka"
def ambitions(self):
return [
"Become an Engineer",
"Do New Projects"
]
def __str__(self):
profile = f"""
Username: {self.username}
Location: {self.location}
Education:
- Institutes: {", ".join(self.current_education['Institutes'])}
- Majors: {", ".join(self.current_education['Majors'])}
Currently Learning:
"""
for key, value in self.currently_learning.items():
profile += f" {key}. {value}\n"
profile += f"""
Fun Fact: {self.fun_fact}
Hobbies:
"""
for hobby in self.hobbies:
profile += f" - {hobby}\n"
profile += f"""
City: {self.get_city()}
Ambitions:
"""
for ambition in self.ambitions():
profile += f" - {ambition}\n"
return profile
ramindu = WhoAmI()
print(ramindu)
Last Edited on: 23/09/2024