Answer:
import csv
def ideal_weight( filename ):
with open( "filename", "r" ) as file:
for row in csv.DictReader( file):
print ( "Name of person: ",row["name"] )
person_weight = ( 110 * row["height"] )/ 5
print ( "Ideal weight: ", person_weight )
Step-by-step explanation:
The python source code above is a function which recieves a csv file argument, opens the file and reads each row an ordered dictionary. The function prints the name of each person in the file and their ideal weight.