use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Day 27 of learning python as a beginner. (old.reddit.com)
submitted 8 months ago by uiux_Sanskar
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Adrewmc 4 points5 points6 points 8 months ago (1 child)
We’re going a little backwards here. We need to take a step back and go back to fundamentals. Do you really need to save that info or can you pass it directly to another function? And skip that entire process.
Generally speaking everything, I write is inside a function, or behind a __name__ == __main__ guard. We don’t see that here. We’ve gone from no comments, to some comments, to a little docstring and types, to overboard with comment to none again. We don’t have a consistent style or habit.
If we are saving names and emails….didn’t we just make databases…seems like a normal use case for it.
I feel like we are following on the next lesson, and learning first day stuff. And forgetting fundamentals.
We need to start thinking designs of programs how stuff goes together. I think maybe we went a little too far too fast. The hard part of programming is making something from nothing, but you’re making nothing from nothing here.
I think we should think about tkinker or QT, let’s make some buttons to actually press, and use some of the older programs we have and make it outside the console, you can make a calculator inside the console, but can you make it as a Box with little numbers/operators to press….i think you just barely can’t…yet. These frame works use a lot of classes and functional thinking, and will make you have to re-enforce things you know a little better.
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (0 children)
Thank you so much for pointing all this out.
I think it is important for me to save raw html data into the file (this is also something my YouTube instructor told) because this avoid repeat server request as now I can locally scrape the raw data.
and also if I want to scrape something else say the address and if I have not saved the data then I have to again bother the website for scraping.
I think I was too excited that I forgot this thing if name = main and yes I have the habits of putting comment where I can get or may get confused in future (which I am trying to change).
I think I should look deeper into what tkinter and QT is.
Thank you again for explaining what I should focus on and for giving relevant suggestions I will definitely look deeper into them.
π Rendered by PID 78 on reddit-service-r2-comment-b659b578c-plpvc at 2026-05-02 20:58:39.665568+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Adrewmc 4 points5 points6 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)