-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
21 lines (15 loc) · 1.02 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
print('Медицинская анкета')
name = input('Введите своё имя и фамилию: ')
weight = int(input('Введите свой вес: '))
age = int(input('Введите свой возраст: '))
if age <= 30 and weight > 60 and weight < 120:
print(name,',', age,'лет',',','вес', weight,'- Вы здоров')
elif age > 30 and (weight < 50 or weight > 120):
print('{}',',', '{}','лет',',','вес', '{}', '- Вам нужно заняться собой'.format(name, age, weight))
elif age > 40 and (weight < 50 or weight > 120):
print(name,',', age,'лет',',','вес', weight,'- Вам требуется врачебный осмотр')
elif age > 30 and (weight >= 65 and weight < 120):
print(name,',', age,'лет',',','вес', weight,'- Вы хорош, просто красавчик')
elif age >= 18 and (weight >= 50 and weight < 80):
print(name,',', age,'лет',',','вес', weight,'- Вы девочка, и Вы красотка')
'{0:.3}'.format(1/3)