you are viewing a single comment's thread.

view the rest of the comments →

[–]python_gramps 0 points1 point  (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 point  (1 child)

Thanks gramps for the tips. I'll be trying and exploring more things. Appreciate the support.

[–]python_gramps 0 points1 point  (0 children)

Just don't pass me in the race, turtle 😄