Find ID for the name in the list from csv file in python
This question should be posted in StackOverflow. 

Store your CSV into a Pandas DataFrame and operate on that.

import pandas as pd

df=pd.read_csv('nameofyourcsv.csv')
names=('er','rtf')

for each in names:
    print(df.loc[df['Name'] == each, 'ID'].iloc[0])