My issue
def get_scholarship(r):
if 1<=r<=50:
print(‘100’)
elif 51<=r<=100:
print(‘50’)
else:
print(‘0’)
r = int(input())
res = get_scholarship(r)
print(res)
My code
# cook your dish here
# r = int(input())
# if 1<=r<=50:
# print('100')
# elif 51<=r<=100:
# print('50')
# else:
# print('0')
def get_scholarship(r):
if 1<=r<=50:
print('100')
elif 51<=r<=100:
print('50')
else:
print('0')
r = int(input())
res = get_scholarship(r)
print(res)
Problem Link: How much Scholarship Practice Coding Problem