From 444d56b9f3c7f0d7b4db5b3151d455b6f4aa7421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Fri, 28 Oct 2022 05:59:11 -0300 Subject: [PATCH] =?UTF-8?q?Exerc=C3=ADcio=20Guiado=20com=20while?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aula39.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/aula39.py b/aula39.py index 2b23c9c..18ef034 100644 --- a/aula39.py +++ b/aula39.py @@ -1,3 +1,13 @@ """ -Crie uma calculadora com while +Iterando strings com while """ +# 012345678910 +nome = 'Luiz Otávio' # Iteráveis +# 1110987654321 +tamanho_nome = len(nome) +print(nome) +print(tamanho_nome) +print(nome[3]) + +nova_string = '' +nova_string += '*L*u*i*z* *O*t*á*v*i*o'