Programming with Python

So I’ve been learning some VBA, but it seems like Python is the popular method for getting your computer to do stuff, so I started looking into that too.

Here’s a couple examples that you can download and try out.  You’ll need Python 3 installed (get it here: https://www.python.org/downloads/) to let it do its magic.

Examples

Lottery Numbers:  Give the program 6 numbers, and it’ll tell you how much money you’ll need to spend to win the jackpot (and how many years of twice weekly playing you’ll need to get it).  Download here.

Lottery Frequency:  Give the program the number of years, and it’ll tell you how often each number got picked, and what the top 6 numbers are.  Outputs a .csv file.  Download here.

Church Bulletin: I won’t attach the file here, but I’ve been putting the bulletins together for the churches back home for the last few months. Python has made it easy to grab a list of hymns and scripture readings that are in an excel file, and populate a word document template, which minimizes the chances of entering a wrong date or incorrect words (there were actually a couple times doing the bulletins manually I messed up the dates, or got the hymn number right but the words wrong, which caused much wailing and gnashing of teeth).

20 Comments

  1. I loved as much as you will receive carried
    out right here. The sketch is attractive, your authored subject matter stylish.
    nonetheless, you command get bought an nervousness over that you wish be delivering the following.
    unwell unquestionably come more formerly again as exactly the same nearly a
    lot often inside case you shield this hike. http://99ceme.in/

  2. Magnificent items from you, man. I’ve be aware your
    stuff previous to and you are simply extremely great.
    I really like what you’ve bought right here,
    really like what you are stating and the way
    in which during which you are saying it. You make
    it entertaining and you continue to care for to keep it smart.
    I can’t wait to learn much more from you. This is really a
    wonderful web site. http://www.99ceme.in/ref.php?ref=HONEYWII99

  3. Wonderful items from you, man. I’ve take into account your stuff prior to and you
    are just extremely magnificent. I actually like what you’ve
    obtained right here, really like what you’re stating and the way during which you assert it.

    You are making it enjoyable and you still care for to keep it wise.
    I can not wait to learn far more from you. This is actually a wonderful website. http://menangceme.net/ref.php?ref=HONEYLEMON

  4. Hey just wanted to give you a quick heads up.
    The words in your post seem to be running off the screen in Internet explorer.
    I’m not sure if this is a formatting issue or something to do with internet browser compatibility but I thought
    I’d post to let you know. The design and style look
    great though! Hope you get the problem solved soon. Kudos http://dominoqiu.link/ref.php?ref=HONEYWII88

  5. Remarkable issues here. I’m very glad to see your article.
    Thank you a lot and I’m having a look forward to touch you.

    Will you please drop me a mail?

  6. I’ve been browsing online more than three hours today,
    yet I never found any interesting article like yours. It is pretty worth enough for me.
    In my view, if all web owners and bloggers made good content as you did, the
    web will be much more useful than ever before.

    erectile pill sponsored by doctor oz erectile function paralysis

  7. whoah this blog is excellent i like studying
    your articles. Stay up the good work! You already know, a lot of
    persons are looking round for this information, you
    could aid them greatly.
    buy generic cialis online in usa Cialis online Philippines

  8. Pingback: Google

Leave a Reply

Your email address will not be published.