We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
i am new in pyhton can u help me with the mistake?
#!/bin/pythonimportsysdefsolve(grades):r=[]y=0d=0# Complete this functionforiinrange(0,len(grades)-1):if(grades[i]>=38):y=grades[i]/5d=5*(y+1)-grades[i]if(d<3):r[i]=5*(y+1)else:r[i]=grades[i]else:r[i]=grades[i]returnrn=int(raw_input().strip())grades=[]grades_i=0forgrades_iinxrange(n):grades_t=int(raw_input().strip())grades.append(grades_t)result=solve(grades)print"\n".join(map(str,result))
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Grading Students
You are viewing a single comment's thread. Return to all comments →
i am new in pyhton can u help me with the mistake?