-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from CodeSystem2022/Semana-3
Se han finalizado las tareas asignadas
- Loading branch information
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . . .') |