import random
class Tetraslam:
def __init__(self, name, username, location, bio, languages):
self.name = 'Shresht'
self.username = 'Tetraslam'
self.location = 'Bangalore'
self.bio = '17 year old wannabe startup founder'
self.languages = ['python', 'htmx', 'c', 'rust']
def generate_intro(self):
intro = f"Hello there! \n\nI'm {self.name}, a {self.bio} based in {self.location}.\n\n"
intro += f"- 🌱 I'm currently learning {', '.join(self.languages)}\n"
intro += f"- 📫 How to reach me:
\n"
intro += f"- ⚡ Fun fact: {self.get_fun_fact()}\n"
return intro
def get_fun_fact(self):
fun_facts = [
"I've traveled to over 30 countries!"
"I'm a fan of roguelike and roguelite videogames, especially Dead Cells and Hades."
"My favorite author is Brandon Sanderson!"
"I mostly listen to K-pop, J-rock, and shoegaze rock."
]
return random.choice(fun_facts)