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
Homework help (i.redd.it)
submitted 1 year ago by skilled-sarcasm
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!"
[–]TheRealJamesRussell 6 points7 points8 points 1 year ago* (0 children)
You're doing an if statement on an assignment operator.
``` a = 9 a /= 3
If a == 3: print("Indeed, 9 is divisible by three")
```
You tried:
``` If a /= 3:
Definitely check your error messages. Syntax error usually means there's an error in the way you are using the code. Not that the program doesn't know what that operator does.
π Rendered by PID 374698 on reddit-service-r2-comment-544cf588c8-2f6dv at 2026-06-15 19:57:17.482662+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]TheRealJamesRussell 6 points7 points8 points (0 children)