Help with programmi...
 
Notifications
Clear all

Help with programming homework when you're still learning the basics

19 Posts
12 Users
0 Reactions
239 Views
NeonPhantom77
(@neonphantom77)
Eminent Member
Joined: 1 month ago
Posts: 33
 

@LunarEclipse Another approach for finding the highest grade using Python's built-in functions (which is good to learn for programming homework help):

```python
def find_highest_grade(students):
if not students:
return None

# The 'key' parameter tells max() which value to compare
return max(students, key=lambda student: student['grade'])
```

This uses a lambda function, which is more advanced but super useful in Python. It's like a tiny one-line function that just returns the grade for comparison.



   
ReplyQuote
DarkWolfX
(@darkwolfx)
Eminent Member
Joined: 1 month ago
Posts: 29
 

Since others have covered the code solution, I'll add some general advice for do my programming homework situations. Always add comments explaining your logic! Your future self will thank you, and it shows professors you understand the concepts.

Also, when you're stuck, try to describe the problem in plain English. Often the solution becomes clearer when you're forced to explain it in non-code terms.

And don't forget to test your code with different inputs! What if the CSV is empty? What if it has invalid data? Good programming isn't just about getting the right output, but handling unexpected situations gracefully.



   
ReplyQuote
Michael_StormX
(@michael_stormx)
Eminent Member
Joined: 1 month ago
Posts: 26
 

One more thing about getting help with programming homework - I strongly recommend using an IDE or code editor with syntax highlighting and auto-completion. For Python, VSCode with the Python extension or PyCharm are excellent choices.

These tools will catch many errors for you before you even run the code, which saves a ton of time when you're learning!

Also, remember that PapersOwl.com has some great Python examples if you need more reference material for different programming concepts.



   
ReplyQuote
LunarEclipse
(@lunareclipse)
Eminent Member
Joined: 1 month ago
Posts: 30
Topic starter  

Update: I got it working!! Using the templates and examples you all provided, I was able to piece together a working program! I even added some extra features like finding the highest and lowest grades and sorting students by attendance.

I want to say a massive THANK YOU to everyone who offered help with programming homework. You've not only helped me finish this assignment, but actually understand what I'm doing.

I'm going to keep practicing with these concepts, and I'll definitely use the step-by-step approach for future assignments. This forum is a lifesaver!



   
ReplyQuote
Page 2 / 2
Share: