You've already forked Curso-lenguaje-python
Update Python Ofensivo - Proyecto gestor de notas
This commit is contained in:
13
python-ofensivo/06_proyecto_gestor_notas/notas.py
Normal file
13
python-ofensivo/06_proyecto_gestor_notas/notas.py
Normal 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}
|
||||
"""
|
||||
Reference in New Issue
Block a user