Find ID for the name in the list from csv file in python The CSV file contains:
ID,Name
1,AS
2,er
3,rtf
4,addfs

The list contains the name for example (er,rtf)
I want to find the ID's corresponding to these names mentioned above 
How to find the ID's using the Python code.

Thanks in advance
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])