r/learnpython • u/[deleted] • Jul 16 '20
Just finished "Automate The Boring Stuff With Python''. What next?
Should I start building projects? What are some good beginner projects to start on? What books will help me build projects?
191
u/sme272 Jul 16 '20
You should use what you've learnt and start automating some boring stuff.
45
u/gangculture Jul 16 '20
this... if you can’t apply what you’ve learned on your own, then you weren’t learning, you’ve just read a book.
14
u/SubstantialIce2 Jul 16 '20
Going through this stage right now. I’m in chapter 3. I caught myself early. I was just reading and not enforcing what I learned. Big mistake. Every chapter or topic I’m making sure I create projects in multiple ways so I can solidify the info. Programming is my opinion not that complex because you can get to the same ans. Multiple ways and that is why I like it.
4
Jul 16 '20
I have fallen into this trap. Got a few hours through an online course I'm doing and realized none of it had stuck. I'm going over everything I've covered already before advancing any further.
1
9
u/Elteras Jul 16 '20
I've only been learning for a little while but my problem is, when I learn something I really struggle to think what, in practice, to do with it to practice. I usually just default to simple text based game stuff because games are what I understand, but i feel it's limiting and inefficient sometimes. Do you have any tips on how to think or decide what to do?
3
u/sme272 Jul 16 '20
Focus on a goal and let that direct the learning. Pick a project that interests you and that'll tell you what to learn and you'll get practice doing it at the same time.
2
u/Elteras Jul 16 '20
It's hard to just find something that interests me that can use the things I'm trying to train though, and whenever I try too hard to come up with an idea my mind goes totally blank. I know I need to focus on a goal, but I can't find the goals!
1
Jul 16 '20
I have a pretty big project in mind. Do you know of a good place to figure out exactly what I’ll need to learn to complete it? I’ve learned some Python, HTML and CSS, but there are still several aspects to the project that I’ve got no clue how I would go about creating or even what to google to figure it out.
For anyone who’s curious, the project would be an online DnD platform with a drawable map, a chat with some commands for rolling dice and what not and a few other features specific to the game. Not unlike Roll20 or Fantasy Grounds for anyone familiar with those.
6
u/JaxIsGay Jul 16 '20
The book even says that you should read parts of it again to understand it. If OP can't make something yet, time to go back to page 1
44
21
u/ASIC_SP learnbyexample Jul 16 '20
3
3
10
u/SirKainey Jul 16 '20
I did Python Crash Course after Automate the Boring Stuff. Goes into more detail
1
4
Jul 16 '20
[removed] — view removed comment
5
4
u/solariportocali Jul 16 '20
I went with Python Crash Course first and am now working through Automate the Boring Stuff. I'd say doing Crash Course first is, like you're doing, ideal; Sweigart claims that Automate the Boring Stuff is for beginners, but... well, it's not. Not entirely. It flies too quickly through the material. Having Crash Course under my belt is helping tremendously, and Automate is adding tons of good detail.
2
u/Clicking_Circles Jul 16 '20
They both teach basics - I’d only recommend one or the other. They both are good books.
9
u/mujolocal Jul 16 '20
that book is good for making you comfortable. If you want some real computer science skills the next step is: http://composingprograms.com/ this is a great resource is youre self taught. makes you nearly able to get a job in the field.
8
Jul 16 '20
You could start make something to get rid off stuff that annoys you. Automatic processing of word docx or more.
If you want to do some co-op, we got a discord with different levels of skill and I always seek people to do projects with
3
0
6
5
Jul 16 '20
Set yourself a project to work on, and learn things as you go along. Trust me; you will learn a LOT more and a lot faster if you're working on something you're actually interested on.
I was working on a discord music bot for quite a while and it was huge for teaching classes. It's functional, too. I started out by copying bits of code from various GitHubs, then reading through the discord py documentation and figuring out what does what and tinkering/switching it up. Added a bunch of other functionalities too.
Learning for the sake of learning is hardly efficient. If you learn with a purpose (ie. "How do I make this program wait for input and continue looping until the correct input is supplied") you'll learn a lot more pointedly.
9
u/HighO1 Jul 16 '20
Than explore other books from same author -Al Sweigart
cracking codes,code in minecraft,invent your own game,making game with pygame
4
u/Petelah Jul 16 '20
Start a project! best way to master other aspects of python. Tech with Tim on YouTube has some great ideas to get started on.
4
u/mr_chanandler_bong_1 Jul 16 '20
My best bet was to go after Complete Python Bootcamp - Go from zero to hero .
Or Complete Python Developer Course by Udemy, instructor was amazing and I'm much more confident with python now than I was after finishing ATBSWP. Now I know OOPS too and using functions to automate most of the stuff by defining functions.
Even though ATBSWP was good, it's good for beginners, to get more confident, you could go through above mentioned courses which will make your basics much stronger.
3
u/Dragon20C Jul 16 '20
I made pong with pygame completely different how about making a name finder in a spreadsheet with reverent names etc
3
u/honk-thesou Jul 16 '20
Don’t use a book that help you build projects. You will just follow them as you followed that book. Now look for a project and build it by yourself googling stuff. That’s how you will learn
2
u/Aggravating-Ad-2339 Jul 16 '20
If you are interested in using your Python knowledge for machine learning projects then I would recommend Hands-On Machine Learning with Scikit-Learn, Keras & Tensorflow by Aurelien Geron. There are a couple chapters where he goes through a project from start to finish using the classic datasets for learning - i.e titanic, autos, wine, boston housing. Also tons of code examples for smaller projects and practice. I believe the book is meant to be followed through with the code/jupyter notebooks shared on Github. I was in a program and I used this book for studying process but from how its written, its meant to be 'hands-on'.
1
u/6ImLightningMcQueen9 Oct 03 '24
how long did it take you to go through the machine learning book and actually be half decent at doing ML stuff afterwards?
2
2
u/Cornel-Westside Jul 16 '20 edited Jul 16 '20
I just finished that book as well. Just to give you some ideas, I've made 3 quick things after/during the book.
A script to pull financial data from Mint and put it in my finance spreadsheet (instead of doing that by hand monthly). It automatically does this every month - it was pretty simple, took me maybe 4-6 hours - mostly wrestling with the Mint API I found online.
A script to pull some info monthly from Yahoo Finance that tracks the performance of some basic investment algorithms I use. This was easier than the first one because the python yahoo_fin library is well documented and has lots of info on its use. Probably took 2-3 hours.
A script that automatically sorts my download folder into separate areas depending on the filetype of the download folder, and deletes duplicates. This was using the watchdog library. This was simple in theory, but there were some practical challenges that were useful to troubleshoot. When files are written to the disk, the filename can appear, but the file may not be completely downloaded to be ready to be moved, which can lead to corrupted files. So it was useful to have to learn at an OS level how to handle these kinds of race conditions. Probably took another 2-3 hours.
Future project ideas for me involve automating more web applications (maybe an auto-login for my gmail while keeping it secure - I use 2FA so I don't know how possible it is to do this). I may try to do some work related things - I'm a mechanical engineer so I might try to automatically read PDFs of drawings to automatically check for all necessary fields (name, description, revision number, next assy, material, etc.) which would be really huge for productivity.
Long term, I would love to write a chess engine or other game simulations. Data visualization for mechanical analysis at work would be another interesting option. Building some inverse kinematics or other library for robotics/mechanical automation would also be fun. And before I read this book, I would have said these things are super far away, but now they actually seem very possible. So much has already been developed and you can just customize with the amazing free tools people put out to get exactly what you want.
2
u/Viren_p Jul 16 '20
Start doing projects and also would recommend reading "Practices of python pro by dane hillard" for improving your OOP, design descisions and code more idiomatic python
1
u/geos59 Jul 16 '20
How is that anyways? I have it bookmarked, but haven't used it yet; is was it actually useful?
1
1
u/blackuchiha1192 Jul 16 '20
Once I finished that course I started building small CLIs to help me with local tasks on my computer. Once I built enough I got familiar with too yet and made them into a sing lizard desktop app that calls functions. From there I started building flask sites and more and containerizing them. Of course that’s just my other but hopefully that helped some! I am diving back into the scraping part!
1
u/z-oid Jul 16 '20
Do you feel as though you learned anything in the process?
I've been looking for good sources of information on learning Python as I'm currently stuck in the tutorial loop.
1
u/Avi_TheCodex Jul 17 '20
Build projects in areas you are passionate about!! If you are looking for something to start off on, try building this Weather API Dashboard with Python and Flask... one of my first projects in Python.
https://blog.thecodex.me/weather-dashboard-python-and-flask/
Full text & video tutorial ^ If you get stuck anywhere in the project, tag me and I can help!
1
1
u/JeamBim Jul 17 '20
Yes, start building scripts for anything you can think of.
Then get into Flask or Django. These are some of the best ways to learn how to put together a larger project.
1
1
1
1
0
Jul 16 '20
>Just finished "Automate The Boring Stuff With Python''. What next?
Automate stuff with python?
6
u/Whackles Jul 16 '20
I do wonder what it is you all constantly do that can be automated? I can’t think of anything like that
6
u/Micotu Jul 16 '20
our work makes us scan a qr code on a sheet every day which pulls up a website that we have to type in our name, select todays date, answer 3 questions about if we have come across anyone with covid. if we have any symptoms and have us enter our temperature. It's a bit annoying because the answers for me are the same every day except for the temperature and today's date. I emailed myself the website that the qr code pulls up and made a python script that asks me for my temperature. I enter it, and then it pulls up the page with selenium and fills in my name, fills in todays date using datetime ,clicks the buttons to answer the questions and then enters in the temperature i entered at the start. I put some time.sleep(2) in there so i can review each page before it is submitted, and it lets me hit the final submit, so if something looks wrong like if they change the website, i can back it out and fix it. I later decided i didn't want to use my keyboard to enter my temp, so i made a gui with tkinter where i select the numbers on the gui to enter my temp.
Was this needed? no. Does it save me a lot of time? no. It does save me about a full minute at the start of every day, and makes me not be as annoyed at having to pull out my phone and enter my temp, but more importantly, i learned how to use selenium and tkinter and if i need them for a new project i know what each are capable of. oh and the program makes me happy.
0
u/ChrisIsWorking Jul 16 '20
Try some data analysis. Kaggle has some datasets. Learn to use Jupyter and some charting libraries.
I learned this in codecademy if you’re interested.
170
u/skiutoss Jul 16 '20 edited Jul 16 '20
Build some small project.
Example:
Build a tiny web application that you can spin up locally or deploy somewhere (you can use Flask, or FastAPI).
The application should:
Check what you're listening to on spotify (through spotify API)
Fetch from somewhere the lyrics to the song you're listening to (some other lyrics api)
display the lyrics pretty on a webpage in your app
Caveats:
Find a way to not store secrets like API keys (for authentication to apis) with your code
Application should have some basic unit tests for its logic
Should follow Model-View-Controller design, but not strictly
All of this should be saved in some version control system (Github, Gitlab)
Building this will teach you:
How to design a simple web application with Flask
Fiddling around with html/css
Learning how to efficiently use
requestspackage for making API callsParsing JSONs
How to show JSON data prettily in a webpage
Git
How to write unit tests
Reading documentation
Bashing your head against an application that sort of mirrors what a proper "real-world" web application might look like
Have a project in your portfolio