# integers user_age and hours_of_sleep are read from input. 
# if user_age is greater than or equal to 6, then assign hours_of_sleep with hours_of_sleep plus 1 

user_age = int(input())
hours_of_sleep = int(input())

if user_age >= 6: 
    hours_of_sleep += 1 

print (f'hours_of_sleep: {hours_of_sleep}')

number_of_tasks = int(input())
allowed_groups = int(input())
invalid_groups = int(input())

if number_of_tasks <= 25: 
    allowed_groups -= 1 
else: 
    invalid_groups -= 5 

print(allowed_groups)
print(invalid_groups)

# When the input variable number_of folders is: 
# less than or equal to 35, output 'One-drawer file cabinet'
# between 35 exclusive and 123 inclusive, output 'Medium file cabinet'
# greater than 123, output 'Too many files'

number_of_folders = int(input())

if number_of_folders <= 35: 
    print('One-drawer file cabinet')
elif number_of_folders <= 123: 
    print('Medium file cabinet')

else: 
    print('Too many files')


#When the input variable num_coats is:

#greater than or equal to 34, output 'Too many coats'.
#between 12 inclusive and 34 exclusive, output 'Medium coat closet'.
#between 1 inclusive and 11 inclusive, output 'Small coat closet'.
#less than 1, output 'Invalid number'.

num_coats = int(input())

if num_coats >= 34:
    print('Too many coats')
elif num_coats >= 12 and num_coats < 34:
    print('Medium coat closet')
elif num_coats >= 1 and num_coats <= 11:
    print('Small coat closet')
else:
    print('Invalid number')



    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: