This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
want = float(input("Яку суму ви хочете отримати? ")) | |
have = float(input("Яку суму ви маєте? ")) | |
suma = have | |
year = 0 | |
while suma <= want: | |
suma = suma + 0.25 * suma | |
year = year + 1 | |
print(f'на {year} рік ви отримаєте {suma} гривень') | |
print(f'вам потрібно покласти кошти на депозит на {year} років') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
year = int(input("Введіть кількість років: ")) | |
if 0 <= year <= 6: | |
print('Ваша вікова категорія - дитина дошкільного віку') | |
elif 6 <= year <= 10: | |
print('Ваша вікова категорія - школяр початкової школи') | |
elif 11 <= year <= 16: | |
print("Ваша вікова категорія - школяр седньої школи") | |
elif 17 <= year <= 24: | |
print("Ваша вікова категорія - ранній працездатний вік") | |
elif 26 <= year <= 54: |