logic and program. I passed the first test case after running the code. Is there any way it can be improved?
@yshrj10
Remind me after 4 hrs i am about to give test.
Oh okay. Good luck
It's good. Can be improved but not a lot and not required imo. Like instead of making round grade to nearest multiple of 5 by adding then calculating diff and then appending. It can be done by % i think. If less than 38 Append Else: If grade%5>3: N.append(grade) Else. N.append(grade+(5-grade%5)) ..maybe I haven't tried
That is better. Thanks
Question has to return list tho. (That guy Didn't read Question, did things correctly in wrong way I won by default) / j
It works, i submitted it, just skipped the function part, that way you just have to iterate over the grades once
Bruh. Ik It was a weird joke. I suck at humor :/
Обсуждают сегодня