0
I need help with correcting a method
currently I'm writing a program that contains the names and grades of students, and am trying to create a method in which the grades can be changed. I've tried doing so for the past few days, but all I've been getting are no outputs. can anyone help? thanks in advance. https://code.sololearn.com/cTfmswdVT2kC/?ref=app
2 Answers
+ 3
I just read through again, and yours is right also, you just aren't setting any output. Throw this on the end:
print ("\n----------------------------")
print("\nFirst Name: " + s1.fname)
print("\nLast Name: " + s1.sname)
print("\nGrade: " + s1.grade)
+ 3
Here you go bro: https://code.sololearn.com/c0JSZlhczbio/#py
I haven't used Python in a LONG time, so I may not have went about it the best way because I'm rusty, but it should suffice. Hope it helps.