[PYTHON] Proguramu giving an ambiguous reply

I ’m Nagamasa Yamada. I made it because my friend is not on winter vacation I don't have to bother to use the csv file, but I dared to use (?). Enter a word in the terminal and the program will reply with an ambiguous reply Will return it.

kaiwa.py


import csv

with open('kaikai.csv',encoding="utf-8") as f:
    reader = csv.reader(f)
    for row in reader:
        p = input()
        print(row)

If you do not enter encoding = "utf-8", it will be a bug.

kai.csv



Yes Yes
Hmm
Hmm
I see
Oh
#Repeat this

Recommended Posts

Proguramu giving an ambiguous reply