Buscar

Faça um programa em Python que, dada a idade de um atleta.

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

Prévia do material em texto

27/03/2024, 22:46 Submissão #932470 - beecrowd
https://judge.beecrowd.com/pt/custom-runs/code/932470 1/1
PROBLEMA:
RESPOSTA:
LINGUAGEM:
TEMPO:
TAMANHO:
MEMÓRIA:
SUBMISSÃO:
SUBMISSÃO # 0932470
4111 - API - AULA 4 - AC - 2024_1
Accepted
Python 3.4 (Python 3.4.3) [+1s]
0.075s
514 Bytes
-
27/03/2024 22:45:42
CÓDIGO FONTE
AO VIVO
O que os outros
estão resolvendo.
LISTAR
Liste todas as
suas submissões.
CÓDIGO FONTE
VISUALIZE O CÓDIGO FONTE DE SUAS SUBMISSÕES, JUNTO COM ALGUNS DETALHES EXTRAS.
EDITAR & ENVIAR
def determinar_categoria(idade):
 if idade < 5:
 return "NÃO TEM IDADE PARA SER ATLETA"
 elif 5 <= idade <= 7:
 return "INFANTIL A"
 elif 8 <= idade <= 10:
 return "INFANTIL B"
 elif 11 <= idade <= 13:
 return "JUVENIL A"
 elif 14 <= idade <= 17:
 return "JUVENIL B"
 else:
 return "SÊNIOR"
def main():
 idade = int(input())
 categoria = determinar_categoria(idade)
 print(categoria)
if __name__ == "__main__":
 main()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Hi, 10435162
10435162@mackenzista.com.br
 
 
HOME PERFIL
 
NEWS OPORTUNIDADES ACADEMIC CONTESTS PROBLEMAS SUBMISSÕES
RANKS SAIR
© 2024 beecrowd Privacidade | Termos & Condições | FAQs | Status | Contato Version 7.0.0
https://judge.beecrowd.com/pt
https://judge.beecrowd.com/pt/custom-problems/view/4111
https://judge.beecrowd.com/pt/runs/live
https://judge.beecrowd.com/pt/runs
https://judge.beecrowd.com/pt
https://judge.beecrowd.com/pt/profile/970499
https://judge.beecrowd.com/pt/news
https://judge.beecrowd.com/pt/opportunities
https://judge.beecrowd.com/pt/disciplines
https://judge.beecrowd.com/pt/contests
https://judge.beecrowd.com/pt/categories
https://judge.beecrowd.com/pt/runs
https://judge.beecrowd.com/pt/rank
https://judge.beecrowd.com/pt/users/logout
https://beecrowd.com/privacy-policy-por/
https://beecrowd.com/terms-and-conditions-por/
https://judge.beecrowd.com/pt/faqs/about/judge
https://status.beecrowd.com/
https://judge.beecrowd.com/pt/feedbacks/add

Outros materiais