Thursday, March 10, 2016

Write a program to get the best Filmfare movie from list

Here's the requirement:

1. You have CSV file , with year, Name of movie, Production House and producer  for Film fare best movies. (Get the Data From https://en.wikipedia.org/wiki/Filmfare_Award_for_Best_Film)

FilmFare.csv
1954 Do Bigha Zamin  Bimal Roy Productions  Bimal Roy
1955 Boot Polish  R. K. Films  Raj Kapoor
1956 Jagriti  Filmistan  Sashadhar Mukherjee
1957 Jhanak Jhanak Payal Baaje  Rajkamal Kala Mandir  V. Shantaram
1958 Mother India  Mehboob Productions  Mehboob Khan
1959 Madhumati  Bimal Roy Productions  Bimal Roy
1960 Sujata  Bimal Roy Productions  Bimal Roy






Here's small python function for Dummies 
import csv
f =open("FilmFare.csv")
Best_Mov_list = list(csv.reader(f))
def  BestMov_filmfare(year):
  for i in Best_Mov :
   if i[0]==year:
     return(i[1])


Keeping feeding you Python :)