Skip to content

Commit

Permalink
Merge branch 'devpro-br:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemariano authored Jun 21, 2022
2 parents 3f181d5 + 42dd9fb commit 4662ab3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/corretor_de_exercicios_secao_06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ jobs:
if: always()
run: |
python -m doctest -f secao_06_exercicios_strings/ex_01_comparador_de_strings.py
- name: Correção do Exercício 05 da seção de Strings
if: always()
run: |
python -m doctest -f secao_06_exercicios_strings/ex_05_nome_vertical_escada_invertida.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"""
Exercício 05 da seção de strings da Python Brasil:
https://wiki.python.org.br/ExerciciosComStrings
Nome na vertical em escada invertida. Altere o programa anterior de modo que a escada seja invertida.
>>> inverter_escada('CAMARGUINHO')
CAMARGUINHO
CAMARGUINH
CAMARGUIN
CAMARGUI
CAMARGU
CAMARG
CAMAR
CAMA
CAM
CA
C
>>> inverter_escada('ENZO_PASCOAL')
ENZO_PASCOAL
ENZO_PASCOA
ENZO_PASCO
ENZO_PASC
ENZO_PAS
ENZO_PA
ENZO_P
ENZO_
ENZO
ENZ
EN
E
"""


def inverter_escada(nome:str):
"""Escreva aqui em baixo a sua solução"""

0 comments on commit 4662ab3

Please sign in to comment.