Python Tutorial: Automate Parsing and Renaming of Multiple Files

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 797

  • @jojoesekyisagoe
    @jojoesekyisagoe 5 лет назад +310

    While True:
    print("God Bless You for your time and effort")

    • @krzysztofbandyk168
      @krzysztofbandyk168 5 лет назад +16

      I'd suggest adding
      at the end so instead of:
      God Bless You for your time and effortGod Bless You for your time and effortGod Bless You for your time and effort
      You'll get:
      God Bless You for your time and effort
      God Bless You for your time and effort
      God Bless You for your time and effort
      It's a lot neater that way.

    • @gingerboy9170
      @gingerboy9170 5 лет назад +27

      @@krzysztofbandyk168 no need bruh.... Each print statement starts writing from a new line...😇

    • @krzysztofbandyk168
      @krzysztofbandyk168 5 лет назад +12

      @@gingerboy9170 must have thought of another language. I just kinda assumed it worked like that well that's just a good example of why you need to run your code before correcting people on the internet.

    • @SikandarKhan-ys1ik
      @SikandarKhan-ys1ik 4 года назад +8

      @@krzysztofbandyk168 stuck in C!!! 😂

    • @janpoonthong
      @janpoonthong 4 года назад +1

      Exactly

  • @Spicy496
    @Spicy496 10 месяцев назад +3

    8 years later this video is still useful, keep up the good work man, and thanks for these types of videos.

  • @ericlambert7046
    @ericlambert7046 5 лет назад +81

    Please do more like this - the real world application and step-by-step process to create the solution is invaluable! Great stuff. Thanks.

  • @pauls7056
    @pauls7056 7 лет назад +101

    Wow, I know little about Python but this is about the first tutorial I've seen posted which didn't swamp me with jargon and show me tiresome tasks like counting the letters of my name. Instead, it showed what Python can do that is useful. Really interesting. Thanks for posting - you've restored my interest again.

    • @kaifs976
      @kaifs976 4 года назад

      ruclips.net/video/Cq0zHPrUTlo/видео.html

  • @illegalsmirf
    @illegalsmirf 2 года назад +15

    This is SOOO much more useful than standard Python tutorials, thanks and please do more

  • @vpavansaivivek
    @vpavansaivivek 6 лет назад +118

    This is My First Comment on RUclips in 4 years of Usage. Never felt like Commenting. But for the first time, Salute to you Corey Schafer for such brilliant Tutorials!

    • @kaifs976
      @kaifs976 4 года назад

      ruclips.net/video/Cq0zHPrUTlo/видео.html

    • @kaifs976
      @kaifs976 4 года назад

      ruclips.net/video/VP96fjAP7Lc/видео.html

    • @bijogxazindagi7545
      @bijogxazindagi7545 4 года назад

      wanted to like but didn't like your comment because that's my roll no in College.

  • @gambarusso
    @gambarusso 7 лет назад +352

    I feel like a real IT guy right at this moment.

    • @kaifs976
      @kaifs976 4 года назад

      ruclips.net/video/VP96fjAP7Lc/видео.html

  • @svenmoon9875
    @svenmoon9875 7 лет назад +145

    OMFG! Besides the great teaching through simple instruction, I'VE NEVER SEEN SIMULTANEOUS TYPING BEFORE! AMAZING! MIND BLOWN! Seriously, I can't stop smiling.

    • @prasanthmanimaran7540
      @prasanthmanimaran7540 7 лет назад +8

      It is a special feature of Sublime Text that he is using.

    • @OliverSteadman
      @OliverSteadman 6 лет назад +4

      can also do it in Jupyter Notebooks

    • @nolanoreilly
      @nolanoreilly 6 лет назад +8

      I nearly wept when I saw that.

    • @OliverSteadman
      @OliverSteadman 6 лет назад +4

      Gabriel Sena de Souza sure, just click in one place, then hold down Ctrl and click in another place. On some environments it might be Alt or another key, instead of Ctrl.

    • @haloskycrash
      @haloskycrash 5 лет назад

      In Pycharm ⌘ + ⇧ + 8 (Mac) gets you in multi-edit mode. Then Hold Shift up/down/left/right to select multiple areas.

  • @dilipwarrier5199
    @dilipwarrier5199 7 лет назад +6

    Wowwww...it blew me off...one of the best videos i have ever seen. The tempo of delivering it and the quick way you wrote the codes and executed them shows the level of mastery you have. Hats off and thanks a lot @Corey.

  • @JuanSidberry
    @JuanSidberry 6 лет назад +12

    Outstanding! Even TWO Years after you posted this, this video is extremely helpful and adding value. Will check out your other stuff. Like your style. Thanks.

  • @cz48b1
    @cz48b1 5 лет назад +4

    1) Almost exactly what I needed to organize my photos (hundreds of them).
    2) Learnt several new things in a 12 min video.
    Thank you so much for sharing!!!
    Greetings from Brazil.

  • @finedinerest
    @finedinerest 2 года назад +2

    This is exactly what any developer would dream to do with any programming language, thats is to automate daily routine and manual work. Thanks for making video so concise and would love to see more such videos in future.

  • @christianhaugen9462
    @christianhaugen9462 4 года назад +15

    I know this video is old, but you make some of the best content that I've learned from. thanks so much man.

  • @narcisenet
    @narcisenet 7 лет назад +17

    BIG THANKS!! I've just started learning python without any programming background. Your videos and the way you explain Different steps helped me very much. Also your real life scenarios motivates me not to stop mastering Python.
    Thanks again.

  • @karmarocks
    @karmarocks 8 лет назад +2

    @Corey Schafer, I am doing lot of PERL for long time, wanted to master Python. Like you know, only learning all tutorials in the world does not give confidence to solve real world problems like this. I am REALLY glad that you took efforts in uploading this beautiful simple script. Any videos on practical issues ALWAYS welcome and much appreciated !!!

  • @carlosguzman1196
    @carlosguzman1196 5 лет назад +7

    This was a really entertaining tutorial that I can actually use. You were straight to the point and werent talking about other stuff that dragged on. I really liked how you did the side-by-side to show the up to date changes. Thanks and please do more tutorials like this.

  • @lincolnkarim1
    @lincolnkarim1 6 лет назад

    Love it--no unnecessary talk and explanations--you cut to the chase. I wish more learning videos can be as concise so as to keep the flow going--realizing that people can pause and cross reference things that are not clear.
    Thanks for the education.

  • @MohammedAnsariRiz
    @MohammedAnsariRiz 4 года назад +3

    I am starting with python to solve the very same problem you solved here. You explained it so well.The zfill blew me up! Thanks a million.

  • @TEODOEMONEY1
    @TEODOEMONEY1 8 лет назад +1

    I was skeptical at first because all of the click and miss videos I've watched but this is a great video and you're a GREAT teacher. Thanks.

  • @MachineOverlords
    @MachineOverlords 7 лет назад +3

    Please keep doing this type of video! There is a time for longer theory or syntax videos, but this was perfect to walk through solving a real problem. Keep as much detail in as possible while explaining your decisions for what you are doing. It helped immensely to hear your thought process and see how you used print at various steps to confirm proper function of results you wanted. Well done.

  • @maxinteltech3321
    @maxinteltech3321 4 года назад +19

    Combination of regular tutorials and examples like this could be super useful. PLEASE CONTINUE IT

  • @abhishekmittal7213
    @abhishekmittal7213 3 года назад

    This is the true essence of programming. Most of the videos out there just focus on the syntax part without any demonstration of how this knowledge of a programming language can be harnessed to make life easier on an individual scale. They only deal with how to crack interviews etc. I would love to watch more of these videos

  • @ricksegalCanada
    @ricksegalCanada 3 года назад

    Corey, this, 6 years later, is the brilliant, "here's how", high signal, quick videos should be done. I hope everybody doing YT videos gets to see this as a text book example of what to aspire to. Super helpful and allowed me to back away from glob for this type of actions. Well done.

  • @rasulesmaeilbeigi5517
    @rasulesmaeilbeigi5517 6 лет назад +2

    I would watch your tutorials a hundred times without being bored or tired. Your tutorials ara extremely helpful and interesting. Thanks A LOT for sharing them. Please continue this.

  • @melshman
    @melshman 7 лет назад +11

    I really LOVE this type of real world example! Would love to see more like these. THANKS!

  • @plovectut
    @plovectut 8 лет назад +115

    Thanks for brilliant tutorials. I really like them and please keep on doing them!
    Just a quick note for records:
    If you did
    f_name.split(' - ')
    instead of
    f_name.split('-')
    you wouldn't need to .strip() f_title/course/num

    • @coreyms
      @coreyms  8 лет назад +40

      +plovectut Great observation! Definitely would have saved some lines of code that way. Thanks.

    • @gingerboy9170
      @gingerboy9170 5 лет назад +4

      Well done dude.... I didn't even notice why did that happen...😅

    • @zork9999
      @zork9999 4 года назад +3

      That works here but I would do it as in the video in case the space was omitted or if there were more than one space by mistake in any of the filenames.

    • @kaifs976
      @kaifs976 4 года назад

      ruclips.net/video/Cq0zHPrUTlo/видео.html

    • @satishadhikari5180
      @satishadhikari5180 4 года назад +1

      I did a list comprehension instead, but a nice one!

  • @dragonfly-7
    @dragonfly-7 6 лет назад +4

    Corey, this kind of videos is very useful. Please continue to provide tutorials based on real world challenges !!! There is nothing better than getting educated in programming based on those !

  • @ranbirmittal1
    @ranbirmittal1 4 года назад +2

    Nobody can explain things the way you do. Great work. Thank you Sir.

  • @alexrsnh
    @alexrsnh 4 года назад +3

    These videos are my go-to for learning python. Clear explanations in manageable chunks. Thanks Corey.

  • @itguy108
    @itguy108 5 лет назад +2

    Your Python videos are very clear and efficient easy to understand, no confusion. Better than other people's. Very helpful.

  • @daviddesouza483
    @daviddesouza483 7 лет назад +2

    Some of the clearest and most useful Python tutorials there are. Thanks

  • @lilmoesk899
    @lilmoesk899 8 лет назад +1

    Awesome video, man. I've watched dozens of videos about Python on youtube, and yours are consistently the clearest, most concise, and informative. Please keep making more!

  • @doodahgurlie
    @doodahgurlie Год назад +1

    Such an AWESOME video! This really brings all your previous videos together and show us how Python can be used to fix repetitive tasks in our everyday lives. Please do more of these!

  • @satoshinakamoto171
    @satoshinakamoto171 4 года назад +9

    you should definitely do more videos like this . this only motivates us to learn more. Thanks

  • @maziarghorbani
    @maziarghorbani 7 лет назад +1

    It was very helpful. In fact when a programming language is put to test to solve real-life problems with efficiency, it motivates the learner to carry on learning. Thank you Corey.

  • @man_vs_life
    @man_vs_life 2 года назад +1

    F'n brilliant. I've been wanting to take a look at Python but never took the plunge. This is a really practical example that has made me realise that I've been missing out. A big thank you, including the incredibly clear and well paced presentation. Subbed.

  • @andrewstebbing1646
    @andrewstebbing1646 5 лет назад +2

    I've only just discovered your RUclips channel, Corey, and this is another great video; easy to follow and well explained. I have followed along, then written a reverse script to put the files back in their original order. I've also duplicated both scripts using Paths from the pathlib module. Your instruction makes this so easy to do - thanks

  • @priyanshukumarsingh5731
    @priyanshukumarsingh5731 5 лет назад +19

    such types of practical implementations gives a better understanding of the language, it was very usefull sir.

    • @kaifs976
      @kaifs976 4 года назад

      ruclips.net/video/Cq0zHPrUTlo/видео.html

  • @Quotient153
    @Quotient153 5 лет назад +7

    WOW!!!! You have explained this in an amazingly easy to understand manner. If I didn't already have a son I would have named my first born after you! But really, this was super helpful. THANK YOU

  • @aaronag7876
    @aaronag7876 5 лет назад +1

    This was exactly what I was looking for, as a newbie in Python, I have hundreds of pictures saved from old mobiles, cameras etc and stored on a hard drive. Have been putting off tidying them and sorting them for almost 3 years, but thanks to your great tutorial, this will save me hours if not days of work. Thank you and please post more of these helpful videos, for us Newbies learning Python, who don't want to watch "Learn to code Python, length of video 9 hours" !!! just to spend the first 5 hours downloading and customising our IDE and type "Hello World" . We want quick easy practical get your hands dirty type vidoes that last no more then 5 to 15 mins, because our attention span is limited due to the magpie effect of shiny things distracting us. Thanks again.

  • @mobaius6479
    @mobaius6479 4 года назад +1

    I'm so surprised the only normal video that actually teaches you to how to do it, and not only copy-paste is from 2015
    and has such a low amount of likes and views. WHY?
    Thank you so much, I'm glad I found you.
    Probably saved me a day of reading just to understand what I understood from this video in 15 minutes

  • @gganesh9
    @gganesh9 6 лет назад +1

    Yes. these real life videos are really helpful as well. You are doing an amazing job with this channel. It takes talent/skill, patience and motivation to be a great teacher and an inspirer. You have a knack for teaching things that are easily understandable. Kudos. Keep them coming. Thanks.

  • @danielvictormusinguzi
    @danielvictormusinguzi 6 лет назад +4

    Corey, your transcending !
    The day I found your channel, I found "GOLD" : -)
    Your videos are precise and professional, thanks.

  • @acdii
    @acdii 5 лет назад +2

    Wow, I have been trying to find an example to rename a file for weeks. I tried Bash, Perl, and ran across this one this morning, and within 30 minutes had exactly what I needed, and it WORKED!!! Thank You very much. Now the fun part, getting it to not fail when old files already renamed are still there. Hoping the next step template to move the file to SFTP will actually delete the file so it wont fail.

  • @ForceTranq
    @ForceTranq 3 года назад +1

    Was looking for something else, but just decided to watch this for learning purposes only. I got say you're really good dude. very insightful. I like how you kept it clear and concise. Great Work!

  • @silvia3304
    @silvia3304 5 лет назад +3

    This video is a masterpiece. It sums up many lessons in a simple manner and shows how to rationally solve a problem using python. Thank you.

  • @monasaleh1452
    @monasaleh1452 3 года назад

    I can't stop watching your video. You made it so interesting and fun to watch. Thank you for posting them on RUclips.

  • @lewi594
    @lewi594 2 года назад +1

    This was immensely helpful !!! I was stuck trying to truncate file names through a loop but your systematic approach helped me figure this out. Much appreciated

  • @ryandavis8813
    @ryandavis8813 2 года назад +1

    This was awesome. I’m a few weeks into learning python and this is the first real world example of what it can quickly do that I’ve come across and I was able to follow all of it! I don’t know much about the module you imported (OS) but this was super encouraging to know that I could figure this out with my existing skillset. Great video, thanks for posting!

  • @Ghasakable
    @Ghasakable 5 лет назад +1

    Please please continue with such videos, your classes level now reached to a different dimension, thank you very much for your efforts

  • @frankoberheim1095
    @frankoberheim1095 8 лет назад

    at first sorry for my English.... I'm come from Germany. German people's like only his mother language. Thank you for your video tutorials here at RUclips... What should I say... your videos are so helpful and easy to understand, that's so great. I hope we will see a lot of other Python video's here. I bought few Python books written in German but I have to say pity I bought this books. they cost me a lot of money but the books are not really helping to learn Python. they make me only confused. but now I found your video's... some of the things I have read are clear now coz of your videos. Thank you so much. Greetings from germany

  • @kingstonpeng1076
    @kingstonpeng1076 6 лет назад +6

    I agree with many other students like me, this is the best Python lesson I have every learned.

    • @kaifs976
      @kaifs976 4 года назад

      ruclips.net/video/VP96fjAP7Lc/видео.html

  • @sitrakaratsimba8103
    @sitrakaratsimba8103 6 лет назад +4

    As an intern, my job was to rename boring stuff nobody wants to do, I did that manually for a week, I wish I saw this before, haha! I was so motivated to learn programming after that internship so here I am, damn, thank you Sir!

  • @ASilva-gb2rq
    @ASilva-gb2rq 5 лет назад +2

    Corey - I think this videos are great, as you know problems like this tend to repeat themselves so having a quick solution is great.

  • @resford1
    @resford1 2 года назад

    This is the video I've been looking for! It makes so much sense doing real world problems vs. the 'projects' in books.

  • @azmi7873
    @azmi7873 7 лет назад

    this is exactly what I wanted to do long time ago. I renamed my files by right clicking -> "rename". Thank you Corey. If only I knew your course back then..

  • @rjbush7955
    @rjbush7955 3 года назад

    Brilliant! This is one of the main reasons I'm learning Python. I'm no dev but there are things I need Python to do to save my sanity at work. I do a lot of ETL to Excel and have to handle loads of garbage file names. Thanks

  • @mednejad
    @mednejad 4 года назад +1

    Great little script. I'm just starting out Python and I can't get over how powerful it is.
    Great job 👍

  • @jaynj908
    @jaynj908 5 лет назад +4

    I actually wrote my first script on this. I am debugging but it does work. Great vid

  • @wasirizvi2437
    @wasirizvi2437 4 года назад

    Wow, I was looking for this sort of thing. My use case was that I had 114 audio files for each 'surah' in the Quran and I used to do this manually to arrange it sequentially for a playlist, like 001 etc. Thanks a lot Corey, you are a gem !

  • @tamircohen1512
    @tamircohen1512 7 лет назад +1

    One of the best and only read world python tutorials out there. Thanks!

  • @VictorOlet
    @VictorOlet 5 лет назад +6

    Corey, this is great! This is something I face often and one of the reasons I wanted to learn Python (Coding).
    Please do more videos like this!

  • @shazkingdom1702
    @shazkingdom1702 4 года назад +2

    You are industrious... you made this December.. what a gift :) Thank you

  • @katerynaselcuk9615
    @katerynaselcuk9615 3 года назад +1

    Super useful! Thank you very much! I would absolutely love to see more of this kind of videos. Seeing how you approach the problem and the process you go through in real life in order to solve it, certainly is tremendously helpful to those who are still new to programming.

  • @aryan7069_
    @aryan7069_ 4 года назад +1

    Amazing😍 i am liking these videos.. please upload as much as you can sir🙏🏻🙏🏻

  • @Codie__
    @Codie__ 7 лет назад +1

    One of the best beginner python videos I've seen. Really helpful, thanks.

  • @Xalantor
    @Xalantor 6 лет назад +1

    I've encountered this exact problem hundreds of times and is was so frustrating to reformat even 20+ names. This is great!

  • @scottsmith4568
    @scottsmith4568 4 года назад +1

    Please do more of this kind of thing. I love this, because it really shows me how programmers approach problems.

  • @greatvedas
    @greatvedas 8 лет назад

    Buddy... Best text parsing video for beginners. Lots of things brought to light.

  • @johnsteidley477
    @johnsteidley477 6 лет назад +2

    Have watched a lot of your work. Great stuff. The real life task is a good format and the tips along the way like, ‘one step, test’ are useful too. Thanks for your contributions to the community.

  • @ajitesh764
    @ajitesh764 5 лет назад +1

    The first thing I did immediately after watching the video is LIKE it....really nice video tells us how we can use python in our day to day life. Make more of these kind of videos.

  • @krishyket
    @krishyket Год назад

    This is a very cool project. I'm binge watching these vids right now and loving them.

  • @echambers1112
    @echambers1112 2 года назад +1

    This is so well presented. And timely (ha! it's a video from 2015) because I'm attacking a messy folder of music files and this is on point. Love that he say to work through it iterating as you go, it seems more approachable that way.

  • @rory1653
    @rory1653 5 лет назад +5

    @corey, that was one of the BEST python videos I've seen! Thank you!
    p.s. your trick with typing on three lines at once was awesome! Never seen that anywhere.

  • @siddharthpandey3204
    @siddharthpandey3204 4 года назад

    You're the best, man!!
    I had just started looking for Python Automation and came across one of the best tutorials in the first place.
    Great, calm way of explaining things, crystal clear.
    Thanks a lot, keep creating such content.

  • @alwayspositive9321
    @alwayspositive9321 4 года назад +1

    Thanks Corey! I renamed 90 videos in my phone just by writing a code in my Pydriod3 app. 😁

  • @georgiosdoumas2446
    @georgiosdoumas2446 4 года назад +2

    Another way to transform f_num from '#5' to '5' (at around 8:40 ) would be
    f_name.strip('#')
    Great video , and I especially like the methodical step-by-step (with printing just to check what we have achieved-so-far) approach up to the final solution.

  • @santii9305
    @santii9305 Год назад +1

    This is quite useful for data cleaning

  • @mahmudulhasan443
    @mahmudulhasan443 4 года назад +2

    Please make this kind of videos more often. You're amazing

  • @mariodakhil7805
    @mariodakhil7805 4 года назад

    you are the best python toturial channel on youtube

  • @officesuperhero9611
    @officesuperhero9611 6 лет назад +1

    Hi Corey, excellent video. You asked if we like these. It is an excellent video and I love it. Your tutorial here has a lot of great practical applications, which is something that many videos lack. Great job, again!

  • @AspireTutorials
    @AspireTutorials 5 лет назад +2

    I ran into the very same problem today. Thanks a lot for the great video.

  • @kingstonpeng1076
    @kingstonpeng1076 6 лет назад +5

    This small tutorial is one of my favorite. Mr. Schafer's instruction is so clear, so precise, and the content is so useful. Each step he explained with extremely clear logic, very easy to understand and very easy to follow. I wish Corey could provide us more of this type of real Python usage examples. I will keep this tutorial and go to as many as others that Corey Schafer presented on RUclips. Thank you so much, Corey.

  • @aplifiedchaos
    @aplifiedchaos 5 лет назад +1

    I'm learning python right for work, and I gotta say you really have a great skill for teaching. I am looking forward to your videos.

  • @omaram1980
    @omaram1980 8 лет назад +1

    This is great Corey, Please keep feeding us this functional tools that can be used on day to day.
    Thanks
    -Omarali

  • @Chrisshao
    @Chrisshao 8 лет назад +3

    Perfect Tutorial. No doubt Learned Multiple functions and concepts in 1 video

  • @vikalaw3887
    @vikalaw3887 3 года назад

    I have been looking for a solutions for a while, your video literally saved my life!

  • @ripperx444
    @ripperx444 6 лет назад +1

    Your tutorials are amazing. Just enough info to be powerful after 12 min of watching!

  • @doniyorabduvokhidov1706
    @doniyorabduvokhidov1706 4 года назад +2

    This is a problem i came across when i downloaded your videos .... there was no order i ordered that one by one.. Now i know how to manage that thanks

  • @redserpent
    @redserpent 8 лет назад +1

    @Corey, Excellent work. Found it very helpful. Am taking a MOOC(Coursera) and was looking for a understanding of parsing and slicing through lists. And this very practical approach just filled the spot. Also need to mention that am new to programming, yet the level of demonstration was just right. Thank you. And I'll be glad to repost this video. If you liked making videos like this one please bring them to the light.

  • @uberkhan
    @uberkhan 3 года назад +1

    This is what I was looking for some time ago. Clearly explained, and in such a simple way. thx for the video.

  • @Ashfordprincess
    @Ashfordprincess 6 лет назад +1

    I am beyond words. Thank you for the tutorial.. i am only halfway through a python basics course, but man, i aspire to be this good someday.

  • @roshunepp
    @roshunepp 3 года назад

    I watched this video months ago. Just this past week I spent 2 days trying to figure this out reading pathlib documentation etc. This fixed in a few minutes what I was struggling with for a few days.
    In my case, I'll take the file name, run a SQL query and use that result to change the filename. I feel silly but thank you so much!!

  • @thunderdand
    @thunderdand 7 лет назад

    Thanks Corey, this tutorial was very helpful! I added the following :)
    directory = raw_input("Please Enter directory path. macOS - Drag folder (directory) into terminal: ")
    os.chdir(directory)
    for f in os.listdir(directory):

  • @carlosyanez1121
    @carlosyanez1121 4 года назад

    This is amazing as hell! thanks Corey. I started to learn python 1 month ago i a owe you a lot of my progress! i will never forget you if i get a job in the near future as a data analyst , so i will donate to your patreon account in return of your useful videos.

  • @bhargavikommineni6970
    @bhargavikommineni6970 3 года назад

    such a great script for saving tons of time. I have no words left to praise you for providing such useful videos!

  • @halkapadvin
    @halkapadvin 5 лет назад +2

    This is excellent. Thanks Corey for showing us the way to solve these things through Python. Would like to see more of this kind 😍

  • @broncojonnes
    @broncojonnes 4 года назад +1

    Man with this approach and the link to the code so easy to understand the process !!!

  • @EcleticMusicFilm
    @EcleticMusicFilm 7 лет назад +1

    Great, I've watched a few of your videos and you have a knack for explaining things well. Thanks for the videos, they're great!

  • @BeginBye
    @BeginBye 4 года назад +4

    Whoa, I used to do similar stuff, but did not know about zfill() Such a wonderful thing it is. Way more readable, laconic encapsulation than the mere condition I used.