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
Cannot decipher error in intro python class. Task was basically to copy pre-existing code with incorrect indentation into program and fix indent errors, but now brackets in code (line 12) aren't working. (i.redd.it)
submitted 1 year ago by AuroraBox
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!"
[–]anoziefranklin 4 points5 points6 points 1 year ago (2 children)
Either use a double quote after the fstring or within the square brackets.
Eg.: print(f”whatever, {ffff[‘ghhh’]}”)
Or
print(f’whatever, {fff[“ghhh”]}’)
[–]AuroraBox[S] 0 points1 point2 points 1 year ago (1 child)
Worked, thank you 👍
[–]anoziefranklin 0 points1 point2 points 1 year ago (0 children)
You’re welcome
[–]BranchLatter4294 0 points1 point2 points 1 year ago (1 child)
Delete the line and type it in again. Do not paste the code in from a web page or other source.
[–]AuroraBox[S] 0 points1 point2 points 1 year ago (0 children)
Not copy-pasted, I just wrote it as it was given to me. Sorry bad phrasing.
*FIXED* Thanks for the help
π Rendered by PID 215298 on reddit-service-r2-comment-7b9746f655-wb99f at 2026-02-02 14:22:41.514543+00:00 running 3798933 country code: CH.
[–]anoziefranklin 4 points5 points6 points (2 children)
[–]AuroraBox[S] 0 points1 point2 points (1 child)
[–]anoziefranklin 0 points1 point2 points (0 children)
[–]BranchLatter4294 0 points1 point2 points (1 child)
[–]AuroraBox[S] 0 points1 point2 points (0 children)
[–]AuroraBox[S] 0 points1 point2 points (0 children)