Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. class Sistema:
  2.     def __init__(self, nombre):
  3.         self.nombre = nombre
  4.  
  5.     def distribucion(self):              # Método
  6.         print(f"Hola, estoy usando {self.nombre}")
  7.  
  8. sistema1 = Sistema("Ubuntu")
  9. sistema1.distribucion()  # Salida: Hola, estoy usando Ubuntu