cadenadeprueba="Ejemplo de frase con muchos caracteres"
for i in cadenadeprueba:
seleccionPalabra=cadenadeprueba.find(i)
if seleccionPalabra//2==0:
i.upper()
print(cadenadeprueba)
I want to make a string that has the uppercase and lowercase letters altered, but I don't know how to do it, I have tried this and many other ways, but usually it does not change any letter or it gives an error as in this case, can someone help me?