# F1rst ? 15 chars aaaaarggghhhhhh

**URL:** <https://pyar.discourse.group/t/f1rst-15-chars-aaaaarggghhhhhh/40>\
**Category:** Sin categoría\
**Created:** [3 Abril, 2020 18:49 UTC](https://pyar.discourse.group/t/f1rst-15-chars-aaaaarggghhhhhh/40 "2020-04-03T18:49:53Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![ccanepa](https://yyz2.discourse-cdn.com/free1/user_avatar/pyar.discourse.group/ccanepa/32/30_2.png) [@ccanepa](https://pyar.discourse.group/u/ccanepa)\
**Post date:** [7 Abril, 2020 03:23 UTC](https://pyar.discourse.group/t/f1rst-15-chars-aaaaarggghhhhhh/40/21 "2020-04-07T03:23:08Z")

</div>

Usando \<pre\>\<code class=“python”\>

```

def altercase(text):
    return "".join([c if i & 1 else c.upper() for i, c in enumerate(text)])

```

Seleccionando el texto sin markup y dándole al boton de **\</\>**

```
def altercase(text):
    return "".join([c if i & 1 else c.upper() for i, c in enumerate(text)])

```

Funcionó aquí, pero supongo la deteccion automatica de lenguaje puede fallar, y es facil romper el formato queriendo agregar mas texto arriba o abajo del bloque

Usando triple backtick (a la github)

```python
def altercase(text):
    return "".join([c if i & 1 else c.upper() for i, c in enumerate(text)])

```

Ok. Juraria que ayer cuando hice la primera prueba con el estilo GH renderizaba como un pre común, aunque ahora el mismo post se ve coloreado.  
Bueno, anda, que es lo que importa.

Single backtick  
`"abadingo" **->**"AbAdInGo"`

[Página anterior](https://pyar.discourse.group/t/f1rst-15-chars-aaaaarggghhhhhh/40.md?page=1)
