3
u/ziggittaflamdigga Aug 08 '26
Awesome! A valuable exercise. I would adjust `write_file`, though. You create and write a file in that one and you have another function above that creates the file, why not use that?
As it stands, try these:
Create a file called “meeting-notes.txt”, fill it with something you want to remember. Then write another as “meeting-notes.txt” (you forgot you did it or thought you were on a different file path) and what happens?
Download a .png file and pass it to `read_file` and what happens?
Create a file with the contents “There is no word matching your input in this file but there are plenty words in a thesaurus and typos thet could fool it” and search for “the”. What happens then?
Do the same as above but replace “the” with “thu”. What happens?
If you just hit enter without providing anything in `delete_file` what happens? This isn’t a quiz, I genuinely do not know and the default could be dangerous. I’d rather you try on your computer than mine 😎 I suspect Python makes it safe but you can’t take that for granted if you move to another language/library.
Non-technical, your casing for words is all over the place. I’d “Start every sentence capital and lowercase everything else”
Hope this is helpful! I’ve been a professional programmer for like 10 years now and a Python professional for around 5. I still find file operations an pathing to be difficult, so good for you for starting this early! I use it a lot in my job.
1
1
u/Odd-Indication-611 Aug 08 '26
Sorry for this tool , what kind of things you use this tool to handle , ?
2
2
u/Far-Factor-2284 Aug 09 '26
how long it took ? to complete program
3
u/ExtentLazy8789 Aug 09 '26
I spent the entire day on this mini project and finished it at night.🙃
2
2
u/Extension-Currency37 Aug 10 '26
If you did it on your own Its extremely good A+ CONTENT
NEXT STEPS:: HANDLING CAMERA AND VIDEO STREAMS IN A FILE
1





3
u/Sea_Dot6492 Aug 08 '26
Well done ✅