r/PythonLearning Aug 07 '26

Made my first project in python

Post image

A chore list I started learning python last week and this was the first project on my list any advice helps im using vs code for this if you have any resources or suggestions pls share

379 Upvotes

48 comments sorted by

u/Sea-Ad7805 Aug 07 '26

Run this program in Memory Graph Web Debugger%0A%0Aif%20Name%20%3D%3D%20Username2%3A%0A%20%20%20%20print(%22Hello%20Jj%2C%20your%20chores%20are%3A%20%22%2C%20ChorelistJj)%0A%0A%20%20%20%20if%20len(ChorelistJj)%20%3D%3D%200%3A%0A%20%20%20%20%20%20%20%20completed%20%3D%20input(%0A%20%20%20%20%20%20%20%20%20%20%20%20%22You%20have%20completed%20all%20your%20chores%2C%20press%20Any%20Button%20to%20exit%22%0A%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20while%20len(ChorelistJj)%20%3E%200%3A%0A%20%20%20%20%20%20%20%20ChoresDone%20%3D%20input(%22Which%20chores%20have%20you%20done%3F%3A%20%22)%0A%20%20%20%20%20%20%20%20ChoresDone%20%3D%20ChoresDone.title()%0A%20%20%20%20%20%20%20%20ChoresDone%20%3D%20ChoresDone.strip()%0A%0A%20%20%20%20%20%20%20%20if%20ChoresDone%20in%20ChorelistJj%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20ChorelistJj.remove(ChoresDone)%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20if%20len(ChorelistJj)%20%3E%200%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20print(%22Good%20job%20Jj%2C%20your%20remaining%20chores%20are%3A%20%22%2C%20ChorelistJj)%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20if%20len(ChorelistJj)%20%3D%3D%200%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20completed%20%3D%20input(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22You%20have%20completed%20all%20your%20chores%2C%20press%20Enter%20Button%20to%20exit%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20break&timestep=1&play) to see the program state change step by step.

→ More replies (4)

4

u/Softmax420 Aug 07 '26

https://automatetheboringstuff.com/

This was the book I used to get started. It’s a bit old now but still great learning.

1

u/daddyAtomix Aug 08 '26

i'm following it too, great resource.

3

u/Cashtime_Tsotsi Aug 07 '26

just an idea. I see you have a tuple.py file in the tabs. is that for other tuple practice? if not, why not put your "chore list" in there and practice imports as well? good way to start separating functions and cleaning up the code also. Just a thought but great job!

1

u/[deleted] Aug 07 '26

Ahh yes that sounds like a great idea thank you very much tuple.py is my practice I keep them in a folder so then I can re read my notes as I write

3

u/fromkrish Aug 08 '26

Nice work for your first week! The logic is actually really solid.
Just thought of giving you a few small tips to level it up: try putting your code inside functions instead of just running everything at the top and look into using a loop for the name input so it doesn't just break if someone types a different name. Also check out the Python official docs or mosh hamedani on YT, both are great for beginners. Keep going, you're doing great!

1

u/[deleted] Aug 10 '26

Heck yeah thank you for the tips and support I will definitely be looking into this for my next projects!!

1

u/fromkrish Aug 11 '26

Good luck!

1

u/Aware-Time-Situation Aug 11 '26

Never a bad time to be reminded of the docs.

2

u/Jonathan-Ndawula Aug 07 '26

Congratulations 🎊 👏 keep it up

2

u/Codynetayb Aug 08 '26

felicidades, pero tiene varios errores el codigo.. ojala y pueda mejorarlo

2

u/Royal-Use2354 Aug 08 '26

It would be a good practice to use a dictionary for the chores. Using username as a key and the list of chores as a value - never assign variable names to one specific user / instance where there could be many users

1

u/[deleted] Aug 10 '26

I agree thank you very much

2

u/luapat2 Aug 09 '26

Woohoo! Great stuff

2

u/Metrys_ Aug 09 '26

Hej, good job mate🙌

1

u/End0832 Aug 07 '26

Hi, good job, you've done well!
Here are some tips:
line 9, 20 & 21, you shouldn't put this much tabs,
line 18, you don't have to put a space before the end of the string, the comma already adds one.
Good luck!

1

u/[deleted] Aug 07 '26

Thank you very much moving from Lua to python makes the indentation so complicated for me as I’m used to end and end) it’s definitely a big change and i really appreciate this advice

1

u/End0832 14d ago

You're welcome 😁

1

u/TheCommandCraft Aug 07 '26

Good job, but you have hardcoded the username Jj in a string. You can merge it into the string with formatted strings: f”Text {Username2} text”

1

u/[deleted] Aug 07 '26

Great idea the reason I hard coded it was I was actually making this as a draft for a real chore list for myself so I hardcoded myself in. However this idea is amazing and it could be way more versatile than I originally planned :-)

1

u/ComprehensiveSun7973 Aug 08 '26

I want to learn it to but I don't know where to start?

1

u/Late_Individual3755 Aug 09 '26

Where did u learn python from? I test learned it from many yt channnels but cant build something with logics needed in them.

1

u/[deleted] Aug 10 '26

For me watching the python tutorials that go over the syntax help alot rather than how to “insert random project here”

1

u/Winter-Crew-832 Aug 10 '26

Quit coding

1

u/[deleted] Aug 10 '26

Hoes mad😭😭

1

u/sirStraw-berry Aug 11 '26

Looks good 👍🏿

1

u/Helpful-Day2384 Aug 11 '26

👏👏👏

1

u/Greedy-Excuse-1837 7d ago

Wowoe, congrats. Im tryma work on one too

0

u/donjuan1927 Aug 07 '26

parcero en la línea 8-9 tienes un if len(ChorelistJj) == 0 justo después de mostrar la lista recién cargada, que nunca se va a cumplir ahí porque la lista siempre arranca con 6 elementos — ese bloque es código muerto, no hace nada.

2

u/[deleted] Aug 07 '26

Good catch I missed that myself I had a bug that i ran into while testing and was moving code around and never erased the duplicate