-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeniro_movie.py
More file actions
19 lines (16 loc) · 830 Bytes
/
deniro_movie.py
File metadata and controls
19 lines (16 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
print(" ****** PELICULAS ROBERT DE NIRO ******")
while True:
min_calif=input("Ingrese a partir de que qualification quiere mostrar las peliculas (1-80)")
if min_calif.isnumeric():
break
print("")
print(" NOMBRE DE LA PELÍCULA PUNTUACION ANHIO")
with open("deniro.txt") as fil_file:
for movie in fil_file:
movie_data=movie.split(',')
if (int(movie_data[1]) > int(min_calif)):
print(movie_data[2].replace('\n', '').replace('"', '').replace(':','').ljust(40),#Documents se quitan los saltos de linea, comas y puntos a traves de la siguiente syntax's
movie_data[1].replace(',', '').ljust(13), \
movie_data[0].replace(',',''))
print("***********************************************************")
print("")