Skip to content

Instantly share code, notes, and snippets.

@eliasalbuquerque
Created December 19, 2023 16:04
Show Gist options
  • Save eliasalbuquerque/fbb5bd2de4e14b808a7fc35399874777 to your computer and use it in GitHub Desktop.
Save eliasalbuquerque/fbb5bd2de4e14b808a7fc35399874777 to your computer and use it in GitHub Desktop.
Curso Dev Aprender | Jhonatan de Souza

DESAFIO

Crie um módulo chamado processamento_de_audio

Este módulo deverá ter 2 funções:

  • aumentar_volume
  • diminuir_volume

Crie um segundo arquivo chamado app.py e importe o módulo processamento_de_audio e use a função dentro dele.


Módulo processamento_de_audio.py:

def aumentar_volume():
    print('Aumentando o volume')

def diminuir_volume():
    print('Diminuindo o volume')

Importando módulo em app.py:

from modules.processamento_de_audio import *

aumentar_volume()
diminuir_volume()

Console:

[Running] python -u "c:\Users\elias\Workspace\python-devaprender\app.py"
Aumentando o volume
Diminuindo o volume

[Done] exited with code=0 in 0.091 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment