I need help with correcting a method | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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

6th Jul 2017, 5:23 PM
X-1
X-1 - avatar
2 Réponses
+ 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)
6th Jul 2017, 5:43 PM
AgentSmith
+ 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.
6th Jul 2017, 5:37 PM
AgentSmith