Code
Vars
name = "Johan Alejandro Ontiveros Alfaro"
age = 22
nationality = "Mexican"
developer_profile = "Full Stack Developer"
languages = ["Spanish: native", "English: B1"]
occupation = "Student"
institution = "TecNM Campus Ciudad Hidalgo"
hobbies = ["Basketball", "Learn to dance", "Spend time with family and friends", "Learn to programming"]
Class Developer
class Developer:
def __init__(self, name, age, nationality, developer_profile, languages, occupation, institution, hobbies):
self.name = name
self.age = age
self.nationality = nationality
self.developer_profile = developer_profile
self.languages = languages
self.occupation = occupation
self.institution = institution
self.hobbies = hobbies
def description(self):
return 'My name is {}, I am {} years old, I am {} and I am a {}, I can speak {}, I am a {} at {} and my hobbies are {}.'.format(
self.name,
self.age,
self.nationality,
self.developer_profile,
self.languages,
self.occupation,
self.institution,
self.hobbies
)
def Programming(self, languages, stylesheets, frameworks, runtimes, databases, learning, projects):
print(f"Languages: {languages}")
print(f"Stylesheets: {stylesheets}")
print(f"Frameworks: {frameworks}")
print(f"Runtimes: {runtimes}")
print(f"Databases: {databases}")
print(f"Learning: {learning}")
print(f"Projects: {projects}")
futureDeveloper = Developer(
name,
age,
nationality,
developer_profile,
languages,
occupation,
institution,
hobbies
)
print(futureDeveloper.description())
futureDeveloper.Programming(
["Python", "Java", "PHP", "JavaScript"],
["CSS"],
["Angular", "React", "Django"],
["Node"],
["MySQL", "Firestore", "MariaDB"],
["Django", "React", "Astro"],
["webProLog", "ForoAngular", "comandasPlayitaSanMarcos"]
)
Result
#Resultado
My name is Johan Alejandro Ontiveros Alfaro, I am 22 years old, I am Mexican and I am a Full Stack Developer.
I can speak ['Spanish: native', 'English: B1'], I am a Student at TecNM Campus Ciudad Hidalgo and my
hobbies are ['Basketball', 'Learn to dance', 'Spend time with family and friends', 'Learn to programming'].
Languages: ['Python', 'Java', 'PHP', 'JavaScript']
Stylesheets: ['CSS']
Frameworks: ['Angular', 'Django']
Runtimes: ['Node']
Databases: ['MySQL', 'Firestore', 'MariaDB']
Learning: ['Django', 'React', 'Astro']
Projects: ['webProLog', 'ForoAngular', 'comandasPlayitaSanMarcos']