Some nice python scripts | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Some nice python scripts

If you have any scripts which can help me automate my tasks. It want to learn from them. Thanks

17th Dec 2016, 9:37 AM
Aniruddh Dubey
Aniruddh Dubey - avatar
3 Answers
+ 7
I don't know the specifics, but the rough guideline to doing that in python would be to use some type of module to count and detect files, and delete files. Then make an 'if thisfile >= 1 then delete' sort of thing. Look up a module that can do it.
17th Dec 2016, 11:20 AM
Ahri Fox
Ahri Fox - avatar
+ 6
I don't know if my scripts are nice... infact a couple are horribly coded. but maybe you could take a look. what sort of thing did you want to automate?
17th Dec 2016, 10:31 AM
Ahri Fox
Ahri Fox - avatar
0
for example a script to delete duplicate files from a folder etc
17th Dec 2016, 10:46 AM
Aniruddh Dubey
Aniruddh Dubey - avatar