From 8b61cd45457e5048390b5f9209fcc400be955be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Fri, 28 Oct 2022 10:52:13 -0300 Subject: [PATCH] =?UTF-8?q?Introdu=C3=A7=C3=A3o=20ao=20for=20/=20in=20-=20?= =?UTF-8?q?estrutura=20de=20repeti=C3=A7=C3=A3o=20para=20coisas=20finitas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aula43.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 aula43.py diff --git a/aula43.py b/aula43.py new file mode 100644 index 0000000..470aad2 --- /dev/null +++ b/aula43.py @@ -0,0 +1,18 @@ +# senha_salva = '123456' +# senha_digitada = '' +# repeticoes = 0 + +# while senha_salva != senha_digitada: +# senha_digitada = input(f'Sua senha ({repeticoes}x): ') + +# repeticoes += 1 + +# print(repeticoes) +# print('Aquele laço acima pode ter repetições infinitas') +texto = 'Python' + +novo_texto = '' +for letra in texto: + novo_texto += f'*{letra}' + print(letra) +print(novo_texto + '*')