PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#https://www.sololearn.com/Discuss/1384099/?ref=app
def expandLevels(score):
if score<= 100 and score > 50:
return 'Proceed to level 3'
elif score<= 50 and score > 20:
return 'Proceed to level 2'
elif score<= 20 and score > 0:
return 'Back to level 1'
else:
return score
print(expandLevels(15)=='Back to level 1')
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run