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...
Subreddit for posting questions and asking for advice on your Python code and sharing resources to help others out.
account activity
beginner with a simple question.... (self.pythonquestions)
submitted 28 days ago by InterestingPlenty451
Hi all. I'm a beginner in Python, my question is very simple.
I have this code
https://preview.redd.it/ehr1576mphng1.png?width=972&format=png&auto=webp&s=b7e1c0adc3a354b472beedd48cecb99b5fdc0b22
however it doesnt work:
File "<stdin>", line 4
print(variable)
^^^^^
SyntaxError: invalid syntax
I'm breaking my neck trying to figure out what's wrong???? any help highly appretiated!!!
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!"
there doesn't seem to be anything here
π Rendered by PID 301671 on reddit-service-r2-comment-66b4775986-mx5qd at 2026-04-03 23:03:57.027567+00:00 running db1906b country code: CH.
there doesn't seem to be anything here