Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correçao Exercicio 04 seçao 06 issue #65 #121

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/corretor_de_exercicios_secao_06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ 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_04_nome_escadinha.py

- name: Correção do Exercício 05 da seção de Strings
if: always()
run: |
Expand Down
32 changes: 32 additions & 0 deletions secao_06_exercicios_strings/ex_04_nome_escadinha.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""
Exercício 4 da seção 6 da Python Brasil:
https://wiki.python.org.br/EstruturaDeRepeticao

Nome na vertical em escada. Modifique o programa anterior de forma a mostrar o nome em formato de escada.

>>> leia_n('m', 'a', 'r', 'c', 'o', 's')
m
ma
mar
marc
marco
marcos
>>> leia_n('c', 'l', 'a', 'r', 'a')
c
cl
cla
clar
clara
>>> leia_n('m', 'a', 'u', 'r', 'a' , 'o' )
m
ma
mau
maur
maura
maurao


"""

def leia_n(*valores):
nome = []