Urgent.News

What's breaking now, across thousands of outlets.

Tech

My First Python Project: Building a Student Performance Evaluator

I Built My First Python Student Evaluation Program — What Would You Improve? I’ve recently been learning Python, and I built a small student evaluation program as a practical exercise to apply the concepts I’ve learned so far. The program: Calculates the average of Mathematics, Physics, and Chemistry marks. Evaluates academic performance using if , elif , and else . Evaluates attendance…

I recently undertook the task of developing a Python program to evaluate student performance, aiming to put into practice the skills I had acquired through my Python learning journey. The program functioned to assess the averages in Mathematics, Physics, and Chemistry subjects, employing conditional statements with `if`, `elif`, and `else` to determine academic performance.

Interestingly, it also evaluated attendance separately, maintaining distinct criteria for both academic performance and attendance. The program output was formatted to display the average to two decimal places using the `round()` function. One strategic choice I made was to treat academic performance and attendance as separate evaluation systems.

This decision ensured that a student's high academic marks would not be unfairly penalized for poor attendance, nor vice versa, thereby preventing a misleading overall assessment. Through this project, I learned that Python programming is not solely about mastering syntax; understanding the logic behind the conditions and the relevance of the output was equally crucial.

I am sharing this project with the hope of receiving constructive feedback from seasoned Python developers. In particular, I am keen to hear suggestions on enhancing the program's structure, improving conditional logic, and enhancing readability. I also welcome advice on what I should focus on learning next to elevate this project.

The source code for the program can be found on GitHub at https://github.com/Ram-Tech-Cd/student_evaluation.py/blob/main/student_evaluation_py-2.py. While this project is still in its beginner stages, I am eager to continually refine and improve it as I delve deeper into my Python studies.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Exit code 0 is a lie: 7 ways my unattended automation silently did nothing

I run about thirty scheduled jobs on a single Windows box. Some are scrapers, some generate content, some are trading bots, some just check that the other jobs are alive.

  • Exit code 0 does not reliably indicate success
  • Unattended automation reported success for every failure
  • Seven specific ways automation silently failed

Catch Bad Validation Tags at Compile Time with checkerlint

Struct tags are just strings — a typo'd checker name, a wrong-typed field, or a renamed cross-field target all compile fine and fail silently at runtime. checkerlint catches all three before you ship.

  • Checkerlint tool checks struct tags at build/lint time
  • Detects unknown checker names, type incompatibility, cross-field targets
  • Prevents runtime errors caused by invalid struct tags

Checking If a Business's Google Profile Actually Matches Its Own Website

If you do local SEO work, you've run into this: a client's Google Business Profile says one phone number, their website footer says another, and nobody noticed until a customer called the wrong…

  • Google Business Profile checked against business website
  • Verifies name, postal code, and phone number consistency
  • Flags discrepancies and resolved issues for tracking

More from Sunday 6 September →