Задача със стипендии
Здравейте,
не съм сигурна къде точно е грешката в кода ми. През PyCharm всичко изглежда наред, но не и в Judge:
from math import floor income = float(input()) average_note = float(input()) min_income = float(input()) social_scholarship = .35 * min_income nerd_scholarship = average_note * 25 if income < min_income: if 4.5 < average_note < 5.5: print(f'You get a Social scholarship {floor(social_scholarship)} BGN') elif average_note >= 5.5: if social_scholarship > nerd_scholarship: print(f'You get a Social scholarship {floor(social_scholarship)} BGN') elif social_scholarship < nerd_scholarship: print(f'You get a scholarship for excelent results {floor(nerd_scholarship)} BGN') elif social_scholarship == nerd_scholarship: print(f'You get a scholarship for excelent results {floor(nerd_scholarship)} BGN') elif average_note >= 5.5: print(f'You get a scholarship for excelent results {floor(nerd_scholarship)} BGN') else: print('You cannot get a scholarship!')
Thanks, това много ми помага