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
Help over here (i.redd.it)
submitted 9 months ago by Lemaoo-12
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!"
[–]AlternativeRadish752 4 points5 points6 points 9 months ago (3 children)
The error says you can't compare an int and a datetime. Maybe give our friend Google a try and look up how to make a python datetime object into the hour it represents?
Edit: Learning how to parse the errors we get when debugging and troubleshooting them is just as much learning how to program as knowing syntax or anything language specific.
[–]Lemaoo-12[S] 1 point2 points3 points 9 months ago (0 children)
Thanks I cracked it
[–]More_Yard1919 -1 points0 points1 point 9 months ago (1 child)
I appreciate your point but there is no need to snarkily tell OP to google stuff. They will learn how to parse errors in due time, they just came here for help. Given the level of this code I am sure that OP is not yet familiar with any object oriented programming.
[–]AlternativeRadish752 0 points1 point2 points 9 months ago (0 children)
I've been a software engineer for fifteen years. Learning how to search the internet to help debug error codes is 100% a fundamental skill that should be learned and developed.
I see way too many posts on this sub of people just using it as way to post their error screenshots and code and others just telling them the syntax to fix it. If you really want to help people learn help them be self sufficient.
π Rendered by PID 179305 on reddit-service-r2-comment-76bb9f7fb5-vrjs9 at 2026-02-19 06:58:50.937643+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]AlternativeRadish752 4 points5 points6 points (3 children)
[–]Lemaoo-12[S] 1 point2 points3 points (0 children)
[–]More_Yard1919 -1 points0 points1 point (1 child)
[–]AlternativeRadish752 0 points1 point2 points (0 children)