human
I am working on the file "Notas/Notas-Python/01_Estructuras.ipynb".
The first task is:
Clases
Can you write Python program for it?
 Give me a the Python program you requested?
assistant
#Here is the Python program you requested.

# Definición de clase:
class Person:                            
    def __init__(self, first, last):   # Constructor
        self.first = first
        self.last = last
        
    def greet(self, add_msg = ''):     # Método
        print('Hello ' + self.first + ' ' + add_msg)

juan = Person('juan', 'dominguez')    # Creo un objeto del tipo Person
juan.first                            # Obtengo el valor del atributo first

juan.greet()     # Ejecuto método