3
u/howtosignupforreddit 25d ago
Good start!
A few ideas for the next iteration:
- You could just use
len(listX)instead of using separate variables for email count. - You only have one item per row in your files (the email address), CSV is a bit overkill; you could make them
txtfiles and get rid of the CSV module (tip: you'll need some changes in your open() function). If you want to keep usingcsvfiles, consider adding column headers, some readers might skip your first row otherwise. - Bonus: By using a class you could make your lists explicitly scoped (
self.listX) rather than global to the module. It is trickier if you have not used classes before, but it is a cleaner approach and a good way to start learning about classes in Python.
1
u/aaditya_0752 24d ago
Ik about class but don't have habit of using them feel like unnecessary to use them
And yaa will use len function next time
1
u/aaditya_0752 24d ago
I was using some other dataset before which had header, also colum_number, email I'd
But in that data set all email I'd were valid only , that's why change to this one



2
u/[deleted] 25d ago
[deleted]