An Interview With Al Sweigart, Author of Three Introductory Books on Python

Albert Sweigart is a software developer who lives in San Francisco.  To date he has published three introductory books on Python, all of which can be downloaded for free from his website Invent With Python.  Readers may recall the review of his most recent book, Hacking Secret Ciphers with Python, that I posted here last month, which was one of the most popular posts to date here at the aGupieWare blog.  Over the weekend, Al was kind enough to answer a few questions via email for an interview.  

Q: First, thanks for taking the time for this interview. Could you tell us a bit about yourself and your programming background? 

A: I started programming in BASIC when I was in the 3rd grade, which I always hate to say because it makes people believe that you have to start programming at a young age to become proficient in it. All of my programs up until college were pretty much variations of the same program. I didn’t really teach myself all that much, and these days anyone could do in a few months what I did in those several years.

Q:  You've published three introductory books on Python, all of which are available on your website inventwithpython.com.  The first two, "Invent Your Own Computer Games with Python", and its sequel, "Making Games with Python and Pygame," are geared toward kids, while the third, "Hacking Secret Ciphers with Python," seems to be intended more for an adult audience.  How have the three books been received? 

A: Altogether, the books seemed fairly well received. I was surprised that people liked my first book, which led me to continue writing. The Amazon reviews are almost exclusively 5 and 4 stars, and I get an occasional Thank You email from readers. “Hacking Secret Ciphers with Python” is probably a bit much for young kids, but I think teenagers and adults would be able to digest it.

Q: Do you see the cryptography book as a step in a different direction, or as an extension of the puzzles and games introduced in the earlier works? 

A: I saw it as a different direction. Video games are a great way to get people involved in programming, but I wanted something else as well. I noticed that there were a lot of code and cipher books that talked about the classical ciphers the book covers, but very few that explained how to break them and none about how to write programs to break them. I saw it as an opportunity to reach a broader audience. The book itself is also aimed at people with absolutely no prior programming or cryptography experience.

Q: What has drawn you to python?  What do you think are its strengths and weaknesses?   
A: Python is a very readable scripting language. Unlike Perl which has very obtuse use of punctuation characters for different language features, and unlike Java which has an overwhelming amount of boilerplate code, Python seems to be a very direct, “get it done” language. It also has a very gentle learning curve. I’ve written a blog article before about how Python isthe new BASIC.  I use Python for both my own software projects and for teaching programming. At this point, I’ve become so accustomed to Python and its idioms that I’m afraid I’ve become blind to its weaknesses, so I really couldn’t think of any.

Q: What are your favorite python modules?

A: Pygame is excellent for creating games and 2D graphical applications. I’ve written a couple modules that work on top of Pygame called Pygcurse and Pyganim, which add a curses-console for text games and sprite animation, respectively. Lately I’ve started using Requests and Beautiful Soup for downloading and parsing web pages for my Python script. (I’ve written a simple Reddit bot that automatically checks several different web comics and posts them to the r/comics section of the site.) I have some experience with wxPython for creating GUIs for traditional desktop apps, but I’ve heard good things about Qt bindings for Python as well.

Q: Do you currently have any new python books in the works?

A: I’m writing a new Python-for-beginners book with NoStarch Press, which tentatively has the title “Automate with Python”. I’ve described it as “a programming book for people who don’t want to become software developers”. I noticed a lot of office workers, administrators, and academics do a lot of computer-based tasks that involve a lot of mindless, repetitive clicking or compiling of data. This book aims to teach them just enough programming so that they can automate these tasks. It covers basic Python, and then goes into several different modules for text parsing, web scraping, moving and renaming large amounts of files, updating spreadsheets, or sending automated emails and text message alerts. I’m hoping to have it available by summer of 2014.

Q: You accept bitcoin donations through your website.  Have you worked on, or are you currently working on, any Bitcoin related projects?  Can you speak to the intersection of Bitcoin and Python? 

A: I had only added it to the site after other people on the internet suggested it, but I’m glad I did. As with many people, bitcoin had been in my periphery for a while. But setting up the wallet for the donation link forced me to learn more about it. Although as of yet I haven’t worked on any bitcoin projects (if anything, the Tor Project will get my focus once I’ve finished the next book). But for all the negative publicity that bitcoin gets regarding its use to buy drugs and illegal things (all of which, by the way, can apply to cash) I’m really excited about it. It allows minors and people in third world countries to conduct commerce over the internet, and that is a Big Deal.

As to Bitcoin and Python, I think that having a new ability to receive and send money over the internet without middlemen (e.g. Visa) along with open source software like Python really lowers the barrier-to-entry for software development outside of America and traditional software-producing strongholds.

Q: Like your other works, the cryptography book can be read online or downloaded for free.  But if a reader purchases it, you donate all proceeds of the book to the Electronic Frontier Foundation, Creative Commons and the Tor Project.  Why did you decide to donate the proceeds for the book on cryptography?


A: It was the suicide of Aaron Swartz, to whom the book is dedicated to, that made the decision for me. I hadn’t met Aaron, though I have friends who were friends of him. His passing was a tragedy, but also a wake-up call for myself. Looking at his life really made me start looking at mine and how I wanted to make contributions like he had. At the time I was, after two years of off-and-on writing, a couple months away from finishing “Hacking Secret Ciphers with Python”. The other books were selling well, and I had a day job that gave me a comfortable middle-class lifestyle. So I decided that I would turn the proceeds from the books over to help organizations that are doing some really wonderful and necessary things to protect the internet.

Q: What advice would you give to young and not so young beginning programmers?  


A: My main piece of advice is that you suck at coding and will continue to suck for the rest of your life. Once you’ve accepted that, you’ll be able to move on and write some interesting software. Don’t worry about the nagging feeling that you aren’t good enough or know enough, because that feeling will be permanent no matter what you do. And if it doesn’t, it’s because you’ve given up on forcing yourself to learn new things (which is the real danger.)

Also, you’re never too old or too bad at math to learn to code. Most programming doesn’t even require mathematical knowledge beyond arithmetic, and unless you’re in your sixties or seventies you aren’t even too old to become a professional software developer. Programming isn’t something that requires you to be a super genius to do. More than anything, having an interest and motivation to act on that interest is all you need to be set on the right path.

Q: Thanks for taking the time to answer our questions!

103 comments:

  1. Thanks for sharing this informative content that guided me to know the details about the training offered in different technology.
    digital marketing course in chennai | digital marketing training in Chennai

    ReplyDelete
  2. I have read your blog its very attractive and impressive. I like it your blog.

    Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Core Java 8 online training

    Java Online Training from India Java Online Training from India Core Java Training Online Core Java Training Online Java Training InstitutesJava Training Institutes

    ReplyDelete
  3. Bitcoin Bitcoin America automatic Exchange working in Bitcoin in California, Bitcoin in Nevada, Bitcoin in new York, Bitcoin in Washington, Bitcoin in Bitcoin in Utah, Bitcoin in New Hampshire, Bitcoin in Vermont, Bitcoin in Idaho, Bitcoin in Alaska, Bitcoin in Massachusetts, Bitcoin in Connecticut, Bitcoin in Colorado, Bitcoin in north Dakota, Bitcoin in Montana, Bitcoin in Hawaii, Bitcoin in New jersey, Bitcoin in Arizona, Bitcoin in Maryland, Bitcoin in Rhode island, Bitcoin in Florida, Bitcoin in Pennsylvania, Bitcoin in Delaware, Bitcoin in Illinois,Bitcoin in Maine, Bitcoin in new Mexico.

    ReplyDelete
  4. I’ve been browsing on-line greater than three hours today, but I never discovered any attention-grabbing article like yours. It is beautiful worth sufficient for me. Personally, if all webmasters and bloggers made good content material as you did, the net will be a lot more helpful than ever before.

    Digital Marketing Company in Chennai
    SEO Company in Chennai

    ReplyDelete
  5. I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site. Search Bar Firefox 57 Quantum addon

    ReplyDelete
  6. Hey, thanks for the awesome information.

    ReplyDelete
  7. The information that you have posted really useful. Keep sharing the valuable information like this.

    ReplyDelete
  8. A debt of gratitude is in order for each other instructive site. The spot else might just I understand that sort of data written in such a perfect means? I have an endeavor that I'm a few seconds ago working on, and I have been watchful for such data. Lakeland Window Tinting

    ReplyDelete
  9. Very nice post here thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Awesome post. it is very useful and informative post. Thank you for your sharing this wonderful post.
    Digital Marketing Company In Chennai | Ecommerce Web Development Company In Chennai

    ReplyDelete
  13. Great blog looking for the best digital marketing service in chennai? The digital marketing company in chennai providing the best digital marketing service in chennai.

    ReplyDelete
  14. This is really a very good blog post and thanks for sharing it with the community!
    professional web design company in chennai
    web design company in chennai

    ReplyDelete
  15. Awesome post, Great Landing here, Keep going, have a great Success!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    we are providing Elearning Company in Chennai since
    Digital Learning Solutions is a big boom to the Students and employee Engagement
    Mycoach Learning is the best certified Elearning Company, which offers
    Mycoach LMS

    ReplyDelete
  16. Nice blog thanks for sharing Instagram and Facebook have provided an amazing place for new brands to grow and flourish. We can find the perfect niche for your brand on the best social media marketing in chennai.

    ReplyDelete
  17. Effective blog thanks for sharing Set up a aesthetic work environment that employees love to spend time in and relieve their stress. Your company needs the best corporate gardening service in Chennai and Karuna Nursery Gardens in happy to oblige you in the endeavour to make your infrastructure something worth flaunting about.

    ReplyDelete
  18. Very effective blog thanks for sharing Cloudzsolution is the Best CRM Software in Australia. Cloudz organizes all the information in a centralized system. This Software enables data related to customers, contact details, etc. to be recovered easily.

    ReplyDelete
  19. This is Very very nice article. Everyone should read. Thanks for sharing and I found it very helpful. Don't miss WORLD'S BEST MotorCycle Games

    ReplyDelete
  20. We Offer all types of Finance Business Personal Cash
    Quick Cash Advance. Fast Credit Check. Cash Today.
    Fast Cash Online
    low interest rate as low as 2%
    Financial Cash Available Here
    Business Personal Cash
    I'll advise All Cash seeker should contact us
    Contact Us At : abdullahibrahimlender@gmail.com
    whatspp Number +918929490461
    Mr Abdullah Ibrahim

    ReplyDelete
  21. You have shared one of the best awareness that has to be spread out to all on this important topic, well done ya.
    Wall murals in chennai
    wall paper shop in chennai
    upvc window suppliers in chennai

    ReplyDelete
  22. Wow, Great information and this is very useful for us.

    Aluminium scaffolding hire

    ReplyDelete
  23. Apple Infoway Provides Cheap Domain Registration & Web Hosting Services in India @999/- INR Yr. For Domain Registration & Web Hosting Server. Call +91 -93800 37777

    cheap web hosting company chennai

    ReplyDelete
  24. thanks for your information really good your work web design company in velachery Qbigpro branding solution is the best web design company in velachery web design company in velachery.we will create the web site and managing the site.we will help for all business.website is very important for all business.

    ReplyDelete
  25. Nice Presentation and its hopefull words..
    if you want a cheap web hosting in web
    cheap web hosting company chennai

    ReplyDelete
  26. There are lots of field type available. The Typical RSC type shipping container is the most frequent, but when you yourself have an extended slim product a Five Screen Directory or FOL might are better and may be created using less corrugated.custom kraft boxes custom boxes for shipping quick custom boxes custom boxes no minimum custom boxes with inserts custom boxes online custom keepsake boxes custom boxes cheap custom kraft boxes custom boxes cheap Always check together with your corrugated company regarding alternatives.

    ReplyDelete
  27. Nel Good media for bing company! I wish to eliminate some pages from my bing research console by perhaps not indexing them. Just how can I try this the proper way? kevin hart net worth 2019 john cena net worth Eminem Net Worth 2010 Julia Louis Dreyfus Net Worth 2017 more info

    ReplyDelete
  28. Thanks for sharing such a great information with us.Keep on updating us with these types of blogs.
    professional web design company in chennai
    web design company in chennai

    ReplyDelete
  29. Software Development Company We specialize in Blockchain development, Artificial Intelligence, DevOps, Mobile App development, Web App development and all your customised online solutions. Get best impression at online by our services, we are familiar for cost effectiveness, quality, delivery and support.

    ReplyDelete
  30. really its very interesting to read , thanks for blogging like this..
    One of the best scaffolding ladder dealers in chennai, variety of designs and models are available here,please visit us
    Scaffolding dealers in chennai

    ReplyDelete
  31. Thank you so much for this wonderful Post and all the best for your future. I hope to see more post from you. I am satisfied with the arrangement of your post.
    shot blasting machine
    shotblasting
    sandblasting
    sand blasting machine
    steel shots distributors
    Sandblasting Abrasive media

    ReplyDelete

  32. Awesome post. I am a normal visitor of your blog and appreciate you taking the time to maintain the excellent site. I’ll be a frequent visitor for a long time.
    video production company
    production houses in delhi
    Corporate film makers
    Documentary Film Makers in Delhi
    Filmmakers in Delhi
    promotional video services in delhi ncr

    ReplyDelete
  33. Well I definitely enjoyed reading it. This tip procured by you is very constructive for correct planning.
    ACP Sheet
    ACP Sheet Price
    Aluminium Composite Panel
    ACP Panel
    ACP Sheets

    ReplyDelete
  34. Jeewangarg is one of the Best Digital Marketing Agencies where you can find each and every solution under one roof. We are efficient enough to provide our clients the best seo services in Delhi & PPC Services in Delhi at the same place. Moreover, we are the best website designing company in delhi ncr.

    ReplyDelete
  35. Thanks for sharing this informative post. Here we are presenting Chanson Water.
    Best alkaline water ionizer machine manufacturers in india.
    alkaline water machine
    water ionizer india

    ReplyDelete
  36. Nice post. Plan Your next Holidays with Indian Travel Store and get some Exciting Deals on Tours & Travels Packages for Shimla, Manali, Nepal, Bhutan, Rajasthan, Dalhousie, Dharamshala, Kerala, Uttarakhand and many more. Book your next Shimla Manali Tour Package with us for availing some great deals.

    Manali tour package
    Shimla manali tour package

    ReplyDelete
  37. Nice Blog, keep it up for more updates about this type of blog.Carolina Classics is the manufacturer of best F-100 Classic Ford Truck Parts | Buy Ford F100 truck parts online at Carolina Classics.

    Classic Ford Truck Parts
    F-100 Ford Truck Parts

    ReplyDelete

  38. Thanks for sharing this information.
    Want to Buy Step Down Transformer or Are you Curious about What is Step Down Transformer? Read the blog to get your queries resolved before making a purchase.

    ReplyDelete
  39. professional bridal makeup artist in chennai Style Specializes in beauty bridal makeup and makes assured that individual bride should look like a princess.

    best bridal makeup artist in chennai

    ReplyDelete
  40. Swot Business promotions
    Our strategic Top SEO services are comprehensive and aimed towards delivering a competitive edge for websites. A higher brand awareness generated by our SMO services empowers business to placement achieve a unique market.
    For More Details visit : www.swotbusiness.com
    Our Services:
    Top SEO & SMO Services in trichy,
    Top Advertising Agencies,Digital marketing service in trichy,Digital marketing, Social media advertising,Website Development,Social Media marketing
    Keywords:
    SEO Service Providers in Trichy
    , Top seo service in Trichy , Top seo service in Tamilnadu , Digital marketing service in trichy
    Top Advertising Agency in Trichy
    Top advertising agency in Tamilnadu,Top SEO in Trichy,SEO in Tamilnadu,SEO & SMO Service in Trichy
    We Having a lots of Satisified Customers of Our SEO Services,These following Companies are Getting SEO Services from our Company.
    1) tour OperatorsPhoenix Tours & Travels
    2) Maid Servicesphoenix maid service

    3) Tour OperatorsVinny Tours
    4) Event Planners,Wedding decoratorsSwastika Occasions
    5) SVinny Enterprises
    6) Cochin timbers

    ReplyDelete
  41. Well, very clear explanation about this topic, You did a good job and giving us such a useful information that you have shared with us. Thanks for sharing the best and useful information. I am very satisfied with your site and also with your information.

    Regards
    Swastika Occasions
    Swastika Occasionsare a full-service event management company based in Trichy Tamilnadu. Our team of award winning professionals specializes in taking your event from concept to production.For More Details visit www.swastikaoccasions.com or Contact 9994444243

    Our services:

    wedding Plannerss,Bridal Mehandi artist in Trichy,Top wedding Planners in Trichy,Event Planners,Decorators in Trichy,College cultural arrangementss,Wedding Room decoratorss,Honeymoon arrangementss
    KeyWords:
    Top Wedding planners in Trichy,Top Decorators in trichy,Top Wedding Planners in Tamilnadu,Decorators in Tamilnadu , Top event Plnners in Trichy,Catering Service in trichy,Disko jacky in Tamil nadu,Disko jacky in Trichy,Music event planners,Music Event plnners in Tamilnadu,Birthday party planners in Trichy ,Corporate Event Planners,Party decorators in trichy

    ReplyDelete
  42. Good Information, Valuable Blog!!!
    We are One of the Best IIT-JEE Trainers in, in Tamilnadu. Top Best NEET /IIT-JEE Trainers in Tamilnadu , Having 7+ Branches in tamilnadu ,We are Providing training for NEET,IIT-JEE Exams and Foundation Courses for 6th to 12Th Std Students. 3 years of proven success, Providing Best Study material, Well researched study plan, Faculty training and support, Owned and managed by highly qualified & most experienced management team in the coaching industry, Unique POINT ACADEMY Curriculum, Web Support, Use of Innovative Techniques, Reasonable Franchise fee– No hidden costs – No false promises
    100% management focus on running the coaching classes , Sense of ownership as each branch has its own individual name identity, Goodwill among the parents.In 2019 86% of NEET Achievers Grown from our Institute. Scolarship Tests also Available for the Discount in Fees Structure.
    Keywords :
    Top NEET Coaching Institutes in Tamilnadu, NEET Trainers in Tamilnadu , Top NEET Trainers in trichy ,Top NEET Coaching Institute in trichy , NEET & IIT-JEE Trainers , Top IIT-JEE Trainers Trichy,Top NEET Academy in Trichy , Top IIT-JEE Academy inTrichy

    ReplyDelete
  43. Well, very clear explanation about this topic, You did a good job and giving us such a useful information that you have shared with us. Thanks for sharing the best and useful information. I am very satisfied with your site and also with your information.
    Regards
    Swot Business promotions
    Our strategic Top SEO services are comprehensive and aimed towards delivering a competitive edge for websites. A higher brand awareness generated by our SMO services empowers business to placement achieve a unique market.
    For More Details visit : www.swotbusiness.com
    Our Services:
    Top SEO & SMO Services in trichy,Top Advertising Agencies,Digital marketing service in trichy,Digital marketing, Social media advertising,Website Development,Social Media marketing
    We Having a lots of Satisified Customers of Our SEO Services,These following Companies are Getting SEO Services from our Company.
    1) tour OperatorsPhoenix Tours & Travels
    2) Maid Servicesphoenix maid service

    3) Tour OperatorsVinny Tours
    4) Event Planners,Wedding decoratorsSwastika Occasions
    5) Vinny Enterprises
    6) Cochin timbers
    7) Kollam timbers
    8) Dial Phoenix BPO ervices
    9) Top NEET / IIT-JEE Coaching Institutes in Tamilnadu

    ReplyDelete
  44. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..

    tree trimming palm beach

    ReplyDelete
  45. Fourceup Security is a best security service in chennai based upon Factories ,Offices ,Banks & their ATM ,Hotels ,Hospitals ,Schools ,Residential Apartments ,Construction Sites(Conditions Apply) ,Functions ,Tracking Crime systems.

    best security service in chennai
    security agency in chennai

    ReplyDelete
  46. professional bridal makeup artist in chennai Style Specializes in beauty bridal makeup and makes assured that individual bride should look like a princess.

    best bridal makeup artist in chennai

    ReplyDelete
  47. A & P ASSOCIAATES is supplier and trader of plastic packaging box,packaging pallets,plastic containers based in Chennai - Tamil Nadu, India

    vito food oil dealers in chennai

    ReplyDelete
  48. Very nice bro, thanks for sharing this with us. Keep up the good work and Thank you for sharing information
    patio screen enclosures wellington

    ReplyDelete
  49. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.
    Haroon Ullah

    ReplyDelete
  50. Great Blog!!!
    Useful Content ;)
    Regards,
    COCHIN TIMBERS Exporters & Manufacturers ,

    COCHIN TIMBERS Exporters & Manufacturers


    Welcome to COCHIN TIMBERS – an household name in the Packing Industry.
    COCHIN TIMBERS is a leading manufacturers and suppliers of timber materials for Packing.
    Our wide range of Packing Materials includes Rubber Wood, Country Wood, Plywood, Pine Wood & Silver Oak.
    We also undertake to produce Planks, Reapers, Pallets, Crates and Packing Cases
    Started as a family business in the 1980s, is in its third generation, has its customer base in the whole of South India and beyond.
    The reliable & consistent Raw Timber Suppliers or Thadi Vendors support the three Re-Saws that have a Production Capacity of approximately 33000 Cubic feet per month.
    Our Expert laborers with rich experience are the basis for the Organized Production, Best Quality and Timely Delivery

    ReplyDelete
  51. I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers.
    aluminum patio covers fort lauderdale

    ReplyDelete
  52. Nice blog! Full of informative ideas. Thank you, keep sharing.
    web design company in chennai

    ReplyDelete
  53. I’m glad reading your article.Keep up the good work and Thank you for sharing information. real estate sales training

    ReplyDelete
  54. Excellent blog thanks for sharing Buy the best beauty parlour products wholesale in Chennai at Pixies Beauty Shop. Thousands of global top-tier brands to choose from and friendly faces all over, we would love to make your Salon journey, one the world recognizes.
    Cosmetics Shop in Chennai

    ReplyDelete
  55. Great blog thanks for sharing Instagram and Facebook have provided an amazing place for new brands to grow and flourish. We can find the perfect niche for your brand on the best social media platforms. Marketing through social media brings forth global audience without all these physical boundaries.
    digital marketing company in chennai
    seo service in chennai
    web designing company in chennai
    social media marketing company in chennai

    ReplyDelete
  56. Nice blog thanks for sharing Out of creative ways to set up a vegetable garden? Karuna Nursery is run by the best gardeners in chennai who are ready to offer you with amazing terrace vegetable garden ideas. Visit us right now to learn more and enjoy the experience.
    plant nursery in chennai
    rental plants in chennai
    corporate gardening service in chennai

    ReplyDelete
  57. Book our affordable, quick & on-time best silver service taxi Melbourne with instant booking and enjoy your seamless travel with our Silver Service Cabs Melbourne.

    silver taxi service
    silver service taxi
    silver service cabs
    silver service taxi melbourne
    silver service cab melbourne

    ReplyDelete
  58. ACP Sheet get Exposed to Environmental Factors but these can be cleaned easily. Go through the blog “A Complete Guide to Cleaning & Maintenance of ACP Sheets.

    ACP Sheet
    ACP Sheet Price
    Aluminium Composite Panel
    ACP Panel
    ACP Sheets

    ReplyDelete