class Introduction:
def __init__(self, name, programming_languages, interests, role, level, birthyear, university):
self.name = name
self.programming_languages = programming_languages
self.interests = interests
self.role = role
self.level = level
self.birthyear = birthyear
self.university = university
def get_introduction(self):
introduction = (f"Hello! My name is {self.name} and was born in {self.birthyear}, "
f"also I graduated with {self.university} of computer engineering. "
f"I am proficient in the following programming languages: "
f"{', '.join(self.programming_languages)} as a {self.level}. My interests include "
f"{', '.join(self.interests)} and I currently work as a {self.role}.")
return introduction
alirezazamirian = Introduction("Alireza Zamirian", ["Python", "Golang"],
["server-side development", "technology"],
"back-end developer", "Junior", 2001, 'bachelor')
print(alirezazamirian.get_introduction())
package main
import (
"fmt"
)
type Introduction struct {
Name string
ProgrammingLanguages []string
Interests []string
Role string
Level string
Age int
University string
}
func main() {
alirezazamirian := Introduction{
Name: "Alireza Zamirian",
ProgrammingLanguages: []string{"Python", "Golang"},
Interests: []string{"server-side development", "technology"},
Role: "back-end developer",
Level: "Junior",
Age: 23,
University: "bachelor",
}
fmt.Println(alirezazamirian.Name, alirezazamirian.ProgrammingLanguages,
alirezazamirian.Interests, alirezazamirian.Role, alirezazamirian.Level,
alirezazamirian.Age, alirezazamirian.University)
}