boards = int(input('Enter Expected Boards Percentage'))
b_marks = boards/2
met = int(input('Enter MET Marks'))
m_marks = met*50/240
score = b_marks + m_marks
# used input in the following code in order to display rank in pop-ups
if score<=45:
input('Rank: Under 40k')
elif score>=45 and score<50:
input('Rank: 35k-45k')
elif score>=50 and score<55:
input('Rank: 25k-35k')
elif score>=55 and score<60:
input('Rank: 15k-25k')
elif score>=60 and score<65:
input('Rank: 8k-15k')
elif score>=65 and score<70:
input('Rank: 3k-8k')
elif score>=70 and score<75:
input('Rank: 1k-3k')
elif score>=75:
input('Top 1k rank')
else:
input('Error')
Click Run or press shift + ENTER to run code