
Full Stack Developer | BIT Mesra | Tech Enthusiast | Explorer | Blogger
A softie who writes code.
Explore my innovative projects and GitHub repositories.
Read my insights on web development and technology.
Discover my work, projects, and thoughts.
1from typing import List
2
3class Developer:
4 def __init__(self, name: str, hobbies: List[str], passions: List[str],
5 relationship_status: str,why_code: str, dream_scenarios: List[str]) -> None:
6 self.name: str = name
7 self.hobbies: List[str] = hobbies
8 self.passions: List[str] = passions
9 self.relationship_status: str = relationship_status
10 self.why_code: str = why_code
11 self.dream_scenarios: List[str] = dream_scenarios
12
13 def __str__(self) -> str:
14 return (f"{self.name} is a passionate developer who loves {', '.join(self.passions)}. "
15 f"Their hobbies include {', '.join(self.hobbies)}.
16"
17 f"They code because: '{self.why_code}'.
18"
19 f"Dream scenarios include: {', '.join(self.dream_scenarios)}. "
20 f"Relationship status? {self.relationship_status}.")
21
22salil: Developer = Developer(
23 name="Salil Lakra",
24 hobbies=[
25 "Singing 🎤",
26 "Dancing 💃",
27 "Acting 🎭",
28 "Cooking 🍳",
29 "Coding 💻",
30 "Hanging out with friends 👫"
31 ],
32 passions=[
33 "Full-stack development",
34 "Creating projects I'm proud of"
35 ],
36 relationship_status="Single & Happy 😉",
37 why_code="I'm eager to see my projects come to life and proudly say, 'I built this!'",
38 dream_scenarios=[
39 "Coding by a peaceful lake or river 🌊",
40 "Cooking food near the water 🍲"
41 ]
42)
43
44print(salil)
451Salil Lakra is a passionate developer who loves Full-stack development, Creating projects I'm proud of. Their hobbies include Singing 🎤, Dancing 💃, Acting 🎭, Cooking 🍳, Coding 💻, Hanging out with friends 👫.
2They code because: 'I'm eager to see my projects come to life and proudly say, 'I built this!''.
3Dream scenarios include: Coding by a peaceful lake or river 🌊, Cooking food near the water 🍲. Relationship status? Single & Happy 😉..
4
5
6** Process exited - Return Code: 0 **
7Press Enter to exit terminal