Professional Documents
Culture Documents
Ev3 Equipo1 Gpo11
Ev3 Equipo1 Gpo11
CÓDIGO:
from miLibreria import *
CÓDIGO:
from miLibreria import *
texto2 = input("Escriba texto >>")
centrar(texto2, 40)
PROGRAMA: 3
FUNCIÓN: Titulo
EJECUCIÓN:
CÓDIGO:
from miLibreria import *
CÓDIGO:
from miLibreria import *
dividir(txt, separador)
LIBRERÍA: miLibreria
CÓDIGO:
def capitalizar(texto):
primera = texto[0].upper()
print(primera + texto[1:])
def titulo(texto3):
pos = 1
new_text = texto3[0].upper()
while pos < len(texto3):
if texto3[pos] == " ":
new_text += f" {texto3[pos + 1].upper()}"
pos += 2
continue
new_text += texto3[pos]
pos += 1
print(new_text)