r/learnpython • • 2d ago

Code Review Request: Built two Python tools (Grade Calculator & Study Helper) for school. How can I improve my code?

Hey everyone,

I’ve been learning Python for about 5 months and built two tools to help organize my schoolwork. I just made the repositories public today, and since this is my first time sharing code with anyone, I would love some honest code feedback.

🛠️ What I Built

  1. Grade Calculator: Tracks scores and calculates averages/final exams needed.
  2. Study Helper: Organizes study notes, topics, and generates quizzes.

💬 What I’m Looking to Improve

Since I'm still learning, I'd really appreciate feedback on:

  • Python Logic: Am I doing anything inefficiently or utilizing bad practices?
  • Project Structure: How can I organize my files better?
  • Clean Code: Are my naming conventions and functions structured well?

💻 Where to Find the Code

(Because Reddit filters tend to block direct links from newer accounts, I will paste the direct GitHub links in the top comment below!)

If the comment gets hidden, you can find it on GitHub under:

  • Username: SiddharthV30
  • Repository: python-portfolio
0 Upvotes

7 comments sorted by

2

u/Jello_Penguin_2956 2d ago edited 2d ago

None of the files your readme listed under Project Structure exist. From it, looks like you're planning to move your questions to json but never get to it?

Code looks fine.

1

u/Interesting-Mix-6581 2d ago

Thanks for checking my code out! See if it works now.

1

u/erikslava 2d ago

Eu nao consegui acessar ele

1

u/TripNo9401 1d ago

moving those hardcoded dicts to json is also the easiest way to let someone add study topics without touching the python files

1

u/BotSlamminDayNNight 23h ago

Best quick win at 5 months: pull the input and print statements out of your calculation functions, so you can test the grade math without typing anything in. Run the files through ruff or pylint first too, it kills the naming and unused variable stuff in seconds.