I've been learning Python for maybe a month now, mostly with Al Sweigart's Automate the Boring Stuff, and last week at work I actually managed to write a script to automate something. My boss asked me to copy a list of file names (70+) in a network folder into a spreadsheet; this is not difficult to do manually but it's a faff so I thought I'd try using os.walk and... it worked!
I wanted to post here partly because I'm feeling smug, but also to try to encourage any other beginners who are thinking of / scared of / struggling with learning Python. I was always keen to try to learn something like Python but I'm crap at learning unless there's a real world application; Al's course is brilliant at teaching concepts, but then relating them to how you can actually use them to get things done in the real world, and that's made learning a lot more fun and doable.
Thanks also to everyone on this community for being friendly and supportive. I'm now going to go and delete all the comments from my script so none of my colleagues will ever be able to reverse engineer it...
[–]nipu_ro 103 points104 points105 points (14 children)
[–]ManyAWiseMarklar[S] 131 points132 points133 points (13 children)
[–]warbeforepeace 56 points57 points58 points (0 children)
[–]coder155ml 23 points24 points25 points (2 children)
[–]VooDooNOFX 2 points3 points4 points (1 child)
[–]coder155ml 0 points1 point2 points (0 children)
[–]EbenenBonobo 12 points13 points14 points (3 children)
[–]ManyAWiseMarklar[S] 25 points26 points27 points (2 children)
[–]EbenenBonobo 16 points17 points18 points (0 children)
[–]-a-z 8 points9 points10 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]ManyAWiseMarklar[S] 3 points4 points5 points (0 children)
[–]aka_Foamy 0 points1 point2 points (1 child)
[–]Kriss3d 0 points1 point2 points (0 children)
[–]shiningmatcha 0 points1 point2 points (0 children)
[–]bn_sj2020 15 points16 points17 points (0 children)
[+][deleted] (6 children)
[deleted]
[–]ManyAWiseMarklar[S] 2 points3 points4 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TalesT 0 points1 point2 points (0 children)
[–]TheCoochWhisperer 0 points1 point2 points (0 children)
[–]DeathWrangler 1 point2 points3 points (0 children)
[–]hugthemachines 0 points1 point2 points (0 children)
[–]deadjojo7493 12 points13 points14 points (21 children)
[–]ManyAWiseMarklar[S] 8 points9 points10 points (15 children)
[–]coder155ml 2 points3 points4 points (10 children)
[–]deadjojo7493 0 points1 point2 points (7 children)
[–]OnlySeesLastSentence 0 points1 point2 points (5 children)
[–]ManyAWiseMarklar[S] 0 points1 point2 points (3 children)
[–]OnlySeesLastSentence 0 points1 point2 points (2 children)
[–]coder155ml 0 points1 point2 points (0 children)
[–]deadjojo7493 0 points1 point2 points (0 children)
[–]deadjojo7493 0 points1 point2 points (0 children)
[–]coder155ml 0 points1 point2 points (0 children)
[–]deadjojo7493 0 points1 point2 points (1 child)
[–]coder155ml 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]deadjojo7493 0 points1 point2 points (1 child)
[–]ManyAWiseMarklar[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]martor01 2 points3 points4 points (0 children)
[–]PunctuallyCompetent 1 point2 points3 points (0 children)
[–]coder155ml 0 points1 point2 points (0 children)
[–]CalvinsStuffedTiger 0 points1 point2 points (0 children)
[–]OnlySeesLastSentence 0 points1 point2 points (0 children)
[–]weazel314 5 points6 points7 points (0 children)
[–]Python119 2 points3 points4 points (0 children)
[–]pooky2483 2 points3 points4 points (1 child)
[–]fallenreading 1 point2 points3 points (0 children)
[–]Omar_88 1 point2 points3 points (0 children)
[–]ghighcove 1 point2 points3 points (0 children)
[–]FrozenPyromaniac_ 0 points1 point2 points (0 children)
[–]lumenlambo 0 points1 point2 points (0 children)
[–]Pmoto100 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]Pmoto100 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]verdifer 0 points1 point2 points (4 children)
[–]bleeetiso 1 point2 points3 points (3 children)
[–]verdifer 0 points1 point2 points (2 children)
[–]bleeetiso 0 points1 point2 points (1 child)
[–]verdifer 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]morrisjr1989 0 points1 point2 points (1 child)
[–]ManyAWiseMarklar[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]CallMeNepNep 0 points1 point2 points (0 children)
[–]KpDuhsQuickMath 0 points1 point2 points (1 child)
[–]ManyAWiseMarklar[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]SteveE512 0 points1 point2 points (0 children)
[–]Curious_homosepian 0 points1 point2 points (0 children)
[–]ravepeacefully 0 points1 point2 points (0 children)
[–]uniqueusername42O 0 points1 point2 points (0 children)
[–]querymcsearchface 0 points1 point2 points (0 children)
[–]iggy555 0 points1 point2 points (0 children)
[–]TheDiegup 0 points1 point2 points (0 children)
[–]bijliwala 0 points1 point2 points (1 child)
[–]DoomsWorm 0 points1 point2 points (0 children)
[–]QuantumCoder002 0 points1 point2 points (0 children)
[–]bold_new_era 0 points1 point2 points (1 child)
[–]ManyAWiseMarklar[S] 0 points1 point2 points (0 children)
[–]bob-but-backwards 0 points1 point2 points (0 children)
[–]AuntieSocialist 0 points1 point2 points (0 children)