Home Forums Fórum Lógica de Programação: O Guia Completo Comando caso em Python já disponível

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40655

    Prezados,

    O comando  case já funciona no python, poderiam atualizar a aula?

    Grato.

    #40683
    Fábio Spak
    Participant

      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

      • This reply was modified 2 years, 5 months ago by Fábio Spak.
    Viewing 2 posts - 1 through 2 (of 2 total)
    • You must be logged in to reply to this topic.