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.
#!/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))
Grading Students
You are viewing a single comment's thread. Return to all comments →
new in python can u help me with this code