I am trying to convert for loop to while loop in python and I am not very sure how to do it. Need some help here, thanks! This is what I am working with :
with open('name.csv') as labelcsv:
reader = csv.reader(labelcsv)
name = []
namenumber = []
for row in reader:
tags.append(row[0])
namenumber.append(row[1])
reader
has built-in funcions specially forfor-loop
so may not be easy to createwhile-loop
. – furas 18 hours ago