pythontask12.py 376 Bytes
Newer Older
nishanth's avatar
nishanth committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
n=int(input("enter the number of movies"))
movie=[]
actor=[]
for i in range(n):
 a=input("enter movie name")
 movie.append(a)
 b=input("enter respective actor name")
 actor.append(b)
 print(movie)
 print(actor)
c=input("enter the movie you want to retrieve")
d=1
for i in range(n):
 if(c==movie[i]):
   print(c)
   print(actor[i])
   d=d+1
if(d==1):
 print("movie not found")