Skip to content

Commit

Permalink
Update Exercício 084.py
Browse files Browse the repository at this point in the history
Added the code and a note about code function
  • Loading branch information
mateusadada committed May 24, 2023
1 parent 7aa6bf2 commit 2d7a8b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Exercícios resolvidos/Exercício 084.py
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# Exemplo de parâmetros opcionais

def barra_1():
return '*' * 40


def barra_2(n = 40, caractere = '-'):
return caractere * n


print('Bem vindo ao programa que exibe dois estilos de barras a partir de funções!')

print(f'\nEstilo 1: {barra_1()}')
print(f'Estilo 2: {barra_2()}')
print(f'Estilo 3: {barra_2(20, "/")}')

0 comments on commit 2d7a8b2

Please sign in to comment.