Skip to content

Commit

Permalink
Merge pull request #57 from CodeSystem2022/Semana-3
Browse files Browse the repository at this point in the history
Se han finalizado las tareas asignadas
  • Loading branch information
DenuArg authored May 16, 2023
2 parents 26a30d9 + 7d32eb7 commit 78f6f13
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
Binary file added Python/Semana3/__pycache__/Pelicula.cpython-39.pyc
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions Python/Semana3/peliculas.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
El Padrino
Titanic
El Señor de los Anillos
Star Wars
Pulp Fiction
El Rey León
El silencio de los corderos
El Resplandor
24 changes: 24 additions & 0 deletions Python/Semana3/test_catalogo_peliculas.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from Semana3.Pelicula import Pelicula
from Semana3.catalogo_peliculas import CatalogoPeliculas as ctp
opcion = None
while opcion != 4:
try:
print('Opciones: ')
print('1. Agregar Pelicula')
print('2. Listar las pelicula')
print('3. Eliminar catálogo de peliculas')
print('4. Salir')
opcion = int(input('Digite una opción de menú (1-4): '))
if opcion == 1:
nombre_pelicula = input('Digite el nombre de la pelicula: ')
pelicula = Pelicula(nombre_pelicula)
ctp.agregar_peliculas(pelicula)
elif opcion == 2:
ctp.listar_peliculas()
elif opcion == 3:
ctp.eliminar_peliculas()
except Exception as e:
print(f'Ocurrió un error de tipo: {e}')
opcion = None
else:
print('Salimos del programa . . .')

0 comments on commit 78f6f13

Please sign in to comment.