Lesson 1 – Python Programming (Automate the Boring Stuff with Python)

Lesson 1 – Python Programming (Automate the Boring Stuff with Python)


Hello! And welcome to the online course
for the Austomate the Boring Stuff with Python book. I’m Al Sweigart. I’m a
software developer and textbook author. Automate the Boring Stuff with Python is
my fourth programming book and now I’ve made an online course that
follows the book’s content. “Learn to code” has become a huge mantra.
You have sites like Codecademy and Khan Academy and a massive online open
courses to teach people the program. You hear things like, “coding is the new literacy”
or how everyone in the 21st century will have to learn to code. And if you want to become a software
developer this course can be your first few steps on that path. But what if you don’t want to change
careers to software engineering. You’re still getting these learn to code
recommendations from everyone, mostly from people with a book to sell. (By the way Automate the Boring Stuff
with Python is released under a Creative Commons license, so you can buy a print
or ebook or you can read it online for free at automatetheboringstuff.com. Is there a reason the average office
worker student or administrator should learn to code? Yes. Whether you have to
send emails, visit websites, or going through a ton of spreadsheets and PDFs,
these jobs use laptops and desktop PCs as their primary tool. And sometimes
using a computer means spending hours doing tasks that require a bunch of
mindless clicking and typing. If you don’t have an intern to shuffle this
work off to, you should learn to code so that you could program to computer to do
these task for you. Or if you’re the intern, you should learn to code so that
you can program the computer to do these task for you. So how is this course is
different from all the other online programming courses? Well, I wrote
Automate the Boring Stuff with Python for people who wanted to get up to speed
making small programs that do practical tasks as soon as possible. You don’t need to know sorting
algorithms or object oriented programming paradigms, so this course
skips all of the computer science and concentrate on writing code that get
stuff done. But if you are a computer science
student for budding software engineer, this course will be a good first step to
develop your toolkit of programming skills. This course uses the Python
programming language. Python is the best first language to learn. Many
universities are switching their computer science curriculum away from
Java and to Python. It has a simple syntax and a gentle learning curve, but
it’s still a powerful language used in the real world. Google, NASA, Yahoo, YouTube and even non-technology companies like JPMorgan Chase or Industrial Light and Magic, all used
Python. So learning to code can increase your productivity but it’s also a fun,
creative skill and unlike other creative skills or hobbies, if you have a
computer there’s nothing else to buy in order to write code. You don’t have to
buy paint or yarn or power tools. All you need is some free software called the
Python interpreter. Sound good? Let’s get started. Right now. Open a web browser and go to python.org. You’ll need to download and install Python for your operating system. This is
slightly different on Windows, Mac, and Linux, so consult the course notes for
specific instructions. The one thing you need to know is that you should download
a version 3 Python, like Python 3.5 and not a version 2 Python, like Python 2.7. When we say “Python” we usually mean either the Python interpreter software that you’ve just
downloaded installed or the Python language. Python (the software) comes with
an editor program that you type your Python (the language) code into. The
editor is called IDLE. Consult the course notes for how to start up IDLE on
your operating system. Beginning in the next lesson we’ll start writing code
using it. I highly recommend that you have IDLE open and follow along with the
videos by typing the examples into it. Don’t just sit and watch the videos. It’s
easy to passively watch the videos and think you understand the concepts. Typing
the code build your muscle memory and forces you to see if you can get the
code working. One last thing that you should know from the start: Half of the software engineers day is
spent googling for information. Programming can be complicated and no one can keep all this
information in their head. So don’t feel bad about constantly looking stuff up on
the internet. That’s exactly what professional software developers do
every day. So if you get an error message and you have no idea what it’s talking
about, a good starting point is copying and pasting this message into a search
engine. The first 3 results will probably be to a website
called Stack Overflow, which is a great question and answer site. So before
asking people for an answer, try to find the answer yourself on the
web. One, this will almost always be faster because, two, other people have
probably had your question and already had answered. But when you do ask questions, provide as
much detail as possible Here’s a few things to keep in mind.
Explain what you’re trying to do, not just what you did. Your helper can then
tell you if you’re on the wrong track. If you get an error message, specify the
point at which the error happens. What line number does it happen on? Does the
error happen every time or does it just happen randomly sometimes? Copy and paste the entire error message
and your code to a pastebin site, like pastebin.com or gist.github.com. These websites will give you a link to your text which makes it easy to
share with other people. Explain what you’ve already tried to do
to solve your problem. This trims down the list of possible causes
and tells people that you’ve already put some work into figuring things out on
your own. List the version of Python you’re using. Also, say if you’re running
Windows, Mac, or Linux and what version you’re running, like Windows 7 or Mavericks 10.9.2. Asking effective questions and knowing
how to find answers are invaluable tools on your program journey. Let’s begin!

100 thoughts to “Lesson 1 – Python Programming (Automate the Boring Stuff with Python)”

  1. I just purchased your book today and I can't wait to get started. 😀

    Python is my first programming language so I know I made a good choice in my book selection.

    Thank you!

  2. I'm buy your book from amazon kindle and i need to bypass GFW to learning your video 😛 , "人生苦短,我用Python!”

  3. Hey, I just downloaded python and I have this problem, I want to press enter to go to the next line but everytime it takes it as RUN the code, what do I do?

  4. Please give proper title to your vidoes so we can look for specific content and don't have to browse the entire playlist.

  5. A bit late, but you can use live python shells if you don't want to download it, or you can use a VM with for example kali, and python will come preinstalled (you must update in order to have 3.x version on the VM tho)

  6. Hey! I just clicked on your video for poops and Giggles, but was absolutely impressed on how intuitive and considerate you were in presenting the premise and process involved in understanding this. I was so impressed and happy to watch this. I really wish more videos were presented this way. Thank you!

  7. My code won't work my bot comes online but every time I type a command in it doesn't respond. If someone sees this please help.

  8. You keep teaching this! I'm making a killing getting hired to replace python applications with better languages and technology like crazy, thank you!

  9. This tutorial series (U watched all 15 episoids) teaches about python, but never how to automate anything, the most productive thing he shows how to make is a guess the letter game…

  10. It's actually a pretty good Python tutorial. However, if you are experienced Python programmer looking for some inspiration for automating stuff, save yourself from clicking through the 15 videos.

  11. Is it possible for me to sit in my chair for the next 4 months and grow a beard while studying, digging and learning his video in youtube? LMK

  12. Thanks I just entered my seniors years and retirement is just around the corner, old dogs can learn also. I am wanting to write code for residual income. Today found out about SyntaxError, I know how to spell Bob, wait let me look through my bifocals, Oh its missing one single quotation mark. Dude…..

  13. soo hard:
    print("lol")
    not like i do this today :
    for x in range(100000000000000000000000000000000):
    print("Look mom i do something in my life!")
    btw try that code out lol(and possibly show it to your mom…)

  14. I'm 11 Yrs Old and I Play Alot of Games i was wondering how games were made so i learned programming i already know the basics of strings, functions, loops etc. One Day i will make my own games. Because of this

  15. Want to automate tiresome some task that you do on web ? then this fiverr gig is for you ! https://bit.ly/2t3B14g

  16. Hey bro, great video, just a question, could you kindly advice me on how to make a queue doing these tasks (automating these tasks):
    1. Download file from FTP
    2.Convert the file (to a more readable file)
    3.Upload the file
    I'm a noob so kindly excuse my ignorance. Any advice would be highly appreciated.

    Cheers brother.

  17. Hi Al! Is it possible to make python to put all my photos in a folder like 2016 christmas, 2017 summer like that

  18. Hello 🙂
    got another doubt, all the pip modules are getting easily installed in my personnel laptop, but in my company laptop it's shooting the error saying "Retrying(Retry(total=3, connect = none, read = none, redirect = none )) after connection broken by 'NewConnection Error('<pip._vendor.requests.packages.urllib3.connection verifiedHTTPSConnection object at 0x0000000003D3A5F8>:Failed to establish a new connection : [Errno 11004] getaddrinfo failed',)' : /simple/pyautogui

    Quite long error!! 🙂
    Please help me with it

  19. Wow, I didn't know there was an Al Sweigart youtube channel… and I thought the books were already pretty good

  20. Well i bought his programmers course on udemy i have the book to this course also. I will go threw the course once i finish the current one i am attending the problem i have with the current one is the teacher goes threw a serious of "well you dont want to do it that way" i hope this course is not the same i will report back. i feel sort of put off due to the current course i am attending.
    Also Al Sweigart voice is very clear when he speaks so makes learning easier.

  21. I just started watching this, and I wanted to say a couple things. First of all, I appreciate your intro. I think intros stating the intended outcome of the video are incredibly useful, and it allowed me to quickly decide if this was the video I needed. Second, I decided this is the video I needed! I had exactly the problem you described: I REALLY want to learn to code, but every time I start a python course or something, its all "print this to the window" and "lets make a simple calculator" and not the kind of useful programs that I will actually want to code to add value to my life. These are the kind of programs I need to learn to keep me engaged and to motivate me to keep coding. As I start your series and read your book, I hope you live up to this promise, but thank you in advance for being the exact thing I needed and communicating it clearly from the get go.

  22. This is probably the best Python,
    nay,
    the best CODING book I have.
    I'm going through all these vids,
    then all of al's books
    as I begin to become
    the UberProgrammer!

  23. I purchased the book last summer. Been seriously learning Python with it for the past two weeks. Found your YouTube page by accident. Thank you Al Sweigart, great job!!!!

  24. Hi, can you do an updated version of the tutorials for the latest python version? Just a suggestion, i really like the tutorials. Thanks.

  25. You are doing a great job with these tutorials, man. I have just started, but it seems pretty good. Keep it up. Hoping you develop some more advanced courses. Thanks once again.

  26. Hi Sweigart, is it possible, in your opinion, to build a reconciliation system ? I mean a python program who will be able to import data from different sources (i.e bank statements, etc) and then matching entries.

  27. I am a dude who actually knows sorting algorithms and other nasty crap but still can't make shit in python so I started your book from scratch to see if I can learn some practical stuff.

  28. I guess I ´ll wait AI to learn to code for itself and just say in common english: "Computer do this or that.", like Picard in Star Trek. And then, all you smart coding people will be obsolete! Who is smart now?! (Until then…I´ll follow this guide cause I need that workinghour .xsl to be automated.)

  29. hi Al, I have just started to learn python and one of my colleague asked me to refer your videos. So here i am trying to be a programmer for automation of my work. Currently i want to ask – I am trying to learn this application to automate my work for JIRA reporting. Is there anything specific I need to install to start coding for my requirements to automate JIRA dashboards?
    Also, I have learnt HTML coding a bit from W3School website and have used the same to create my dashboard in Text Gadget in JIRA. Now, i want to automate these manually created gadgets. Is that something possible via python? Please advise.
    Thanks,
    Manish

  30. why is it that lesson videos from the 16th to the 21st and from the 23rd to the 30th are not available? how can I get to see those videos?

  31. If anyone wanted help automating their boring office stuff with python. Contact me: 7036381804

  32. I"m on chapter 4 and it's great. Highly recommend the print book from No Starch Press (you get the ebook for free with the physical book). The course above at Udemy is great. This is a video from that course. Al has responded to me when I tweeted about the Collatz Sequence exercise at the end of the chapter. Top Shelf!

  33. Is there an updated version of this? I’m afraid to put a lot of time into this only to discover than most of it is no longer viable

Leave a Reply

Your email address will not be published. Required fields are marked *