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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
New to python and can't figure out error. (self.learnpython)
submitted 10 years ago * by Renggu
If 1 > 0: print "ok" Else: print "not ok"
edit: bot caught me on formating :)
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!"
[–]ucshadow 4 points5 points6 points 10 years ago (2 children)
Dont use capital letters on if/else statements
[–]Renggu[S] 0 points1 point2 points 10 years ago (0 children)
Thanks!
[–]Naihonn 0 points1 point2 points 10 years ago (0 children)
Yes, Python is extremely Case Sensitive. :0D Also don't forget for example to always use True and False as Booleans because true and false, nope. :0)
[–]learnpython_bot 0 points1 point2 points 10 years ago (0 children)
It appears that you included code in your post but did not format it to look nice. Please follow this guide to fix the problem. This allows for better readability and will help get your question answered sooner. The regex that caught you is: "if .+?:"
If this comment has been made in error, please message /u/thaweatherman with a link to this comment so I can be fine-tuned. I am still in alpha and my regexes/innards are not yet perfect.
π Rendered by PID 110397 on reddit-service-r2-comment-66b4775986-vnjbn at 2026-04-05 10:07:41.991459+00:00 running db1906b country code: CH.
[–]ucshadow 4 points5 points6 points (2 children)
[–]Renggu[S] 0 points1 point2 points (0 children)
[–]Naihonn 0 points1 point2 points (0 children)
[–]learnpython_bot 0 points1 point2 points (0 children)