-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex39.py
More file actions
25 lines (22 loc) · 678 Bytes
/
Copy pathex39.py
File metadata and controls
25 lines (22 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from datetime import date
print('\033[36m=*'*17)
print('\033[1;33mCONFEDERAÇÃO NACIONAL DE NATAÇÃO')
print('\033[36m=*'*17)
ano = int(input('\033[mO ano de nascimento do atleta: '))
date = date.today().year
idade = date - ano
if idade <= 9:
print(f'O atleta tem {idade} anos \n'
f'Categoria: MIRIM')
elif idade <= 14:
print(f'O atleta tem {idade} anos \n'
f'Categoria: INFANTIL')
elif idade <=19:
print(f'O atleta tem {idade} anos \n'
f'Categoria: JÚNIOR')
elif idade <=25:
print(f'O atleta tem {idade} anos\n'
f'Categoria: SÊNIOR')
else:
print(f'O atleta tem {idade} anos \n'
f'Categoria: MASTER')