forked from devpro-br/lista-de-exercicios-python-brasil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devpro-br:main' into main
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
secao_06_exercicios_strings/ex_05_nome_vertical_escada_invertida.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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""" |