# Python

En [TRINKET.IO](https://trinket.io/) podemos crear/encontrar scripts en Python **que podemos embeber en nuestro blog y lo más importante:**

<p class="callout success">**<span style="color: rgb(224, 62, 45);">FUNCIONAN ONLINE </span>ES DECIR, LOS ALUMNOS PUEDEN EDITAR EL CÓDIGO Y VER EL RESULTADO**</p>

Supongamos que queremos que los alumnos practiquen el siguiente script

```python
inp = input('Enter Fahrenheit Temperature:')
try:
    fahr = float(inp)
    cel = (fahr - 32.0) * 5.0 / 9.0
    print(cel)
except:
    print('Please enter a number')

# Code: http://www.py4e.com/code3/fahren2.py
# Or select Download from this trinket's left-hand menu
```

Creamos esta lección [https://trinket.io/python3/5dbec1550b](https://trinket.io/python3/5dbec1550b)

Aquí tenemos el código embed

[![image.png](https://libros.catedu.es/uploads/images/gallery/2025-03/scaled-1680-/NzAimage.png)](https://libros.catedu.es/uploads/images/gallery/2025-03/NzAimage.png)

Copiamos el código embed

[![image (1).png](https://libros.catedu.es/uploads/images/gallery/2025-03/scaled-1680-/image-1.png)](https://libros.catedu.es/uploads/images/gallery/2025-03/image-1.png)

Y lo pegamos en nuestro blog **ESTE ES EL RESULTADO**

<p class="callout info">**😊Venga juega con el código y dale al play😊**</p>

<iframe allowfullscreen="allowfullscreen" frameborder="0" height="300" marginheight="0" marginwidth="0" src="https://trinket.io/embed/python3/5dbec1550b" style="width: 800px; height: 300px;" width="805"></iframe>