Update Python Ofensivo - Proyecto gestor de notas

This commit is contained in:
2024-01-11 20:26:18 +01:00
parent 3ce3338795
commit 653e96cc2b
4 changed files with 147 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
class Nota:
def __init__(self, titulo, contenido):
self.titulo = titulo
self.contenido = contenido
def __str__(self):
return f"""
Título: {self.titulo.upper()}
{self.contenido}
"""