Answer the question
In order to leave comments, you need to log in
How to make an input inactive under a certain condition?
rating = int(input('Enter a place in the list of applicants: '))
quantity_points = int(input('Enter the number of points for exams: '))
! it is necessary that, if rating > 10
, input 'Enter the number of points for exams is not displayed: '
Answer the question
In order to leave comments, you need to log in
rating = int(input('Enter a place in the list of applicants: '))
if rating >= 1 and rating <= 10:
quantity_points = int(input('Enter the number of points for exams: '))
if quantity_points >= 290:
print ('Congratulations, you got in!')
print('Your scholarship will be awarded as a bonus.')
else:
print('Congratulations, you got in!')
print('But you didn't have enough points for the scholarship.')
else:
print(' Unfortunately, you didn't get in.')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question