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'