- This topic has 1 reply, 2 voices, and was last updated 2 years, 5 months ago by .
 
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
 
Home › Forums › Fórum Lógica de Programação: O Guia Completo › Comando caso em Python já disponível
Prezados,
O comando case já funciona no python, poderiam atualizar a aula?
Grato.
Olá Edinalso, no momento não podemos atualizar infelizmente, mas segue um exemplo no python 3.10+:
language = 'Python' 
match language: 
    case 'R': print('You are using R') 
    case 'Julia': print('You are using Julia') 
    case 'Python': print('Yaay you are using Python ')Fabio