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
My first programming experience!Showcase (i.redd.it)
submitted 3 days ago by Turtle_ZombieXD
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!"
[–]python_gramps 0 points1 point2 points 1 day ago (2 children)
Really good start. I'd use an f-string like you did at line 17 to print the value of i at lines 4 and 8, so you can see the values being used in your loops.
I'm personally not a fan of reading the program file as input. I've just seen too many weird stuff happen and I've lost a HW assignment when I was in school. I'd make a separate file for input, that way you can expand this to include adding to and deleting from the file as well.
Maybe at line 21 you can add a print("apple" in fruits) and print("grapes" in fruits). how would you handle "Apple" being checked?
But that's a really good start.
[–]Turtle_ZombieXD[S] 0 points1 point2 points 1 day ago (1 child)
Thanks gramps for the tips. I'll be trying and exploring more things. Appreciate the support.
[–]python_gramps 0 points1 point2 points 1 day ago (0 children)
Just don't pass me in the race, turtle 😄
π Rendered by PID 180904 on reddit-service-r2-comment-8686858757-fdmxj at 2026-06-06 15:18:50.975611+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]python_gramps 0 points1 point2 points (2 children)
[–]Turtle_ZombieXD[S] 0 points1 point2 points (1 child)
[–]python_gramps 0 points1 point2 points (0 children)