Commit 6d7edbe3 authored by nishanth's avatar nishanth 🎯

nishanth

parent dba2af75
Pipeline #11171 passed with stage
in 14 seconds
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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment