Untitled

mail@pastecode.io avatar
unknown
plain_text
4 months ago
345 B
4
Indexable
vagas = [
    ['vaga 1', 1200],
    ['vaga 2', 2550],
    ['vaga 3', 5000]
]

# Filtrando as vagas com salário acima de R$2500
vagas_filtradas = [vaga for vaga in vagas if vaga[1] > 2500]

# Imprimindo as vagas filtradas
print("Vagas com salário acima de R$2500:")
for vaga in vagas_filtradas:
    print(f"{vaga[0]}: R$ {vaga[1]}")
Leave a Comment