Exercício Guiado com while
This commit is contained in:
12
aula39.py
12
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'
|
||||||
|
|||||||
Reference in New Issue
Block a user