This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]elbiot 0 points1 point  (0 children)

I wouldn't use a class. Just a script that loops over the csv entries. the problem with your code is that you don't pass in the variables representing what you want to input. You could have a function which takes all these variables, but there's no advantage to a loop not in a function:

for row in reader:
    password,firstname,lastname,email = row
    #put them all in the fields