BANK JOB¶
You have been hired as a developer in a famous Spanish bank. Your first task as a Python programmer is to develop a program to filter which customers could receive a loan based on their personal information. The requirements are as follows:
A bank has a CSV file with information about the customers (customers.csv). The file consists of multiple lines, one line for each customer. Each line contains the customer’s name, age, nationality, number of children and amount of money in the account. The bank will loan money only to those customers that are younger than 50, have 2 children or more, and have more than 1000 EUR in their account.
Your task: Design and develop a program in Python that reads the customers’ file and prints only the name of those customers that fulfil the conditions to receive a loan.
Your program must work with files with any number of lines, although you can use the following customer information as a customers.csv example to test your program:
[ ]: