Python
En TRINKET.IO podemos crear/encontrar scripts en Python que podemos embeber en nuestro blog y lo más importante:
FUNCIONAN ONLINE ES DECIR, LOS ALUMNOS PUEDEN EDITAR EL CÓDIGO Y VER EL RESULTADO
Supongamos que queremos que los alumnos practiquen el siguiente script
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
Aquí tenemos el código embed
Copiamos el código embed
Y lo pegamos en nuestro blog ESTE ES EL RESULTADO
😊Venga juega con el código y dale al play😊
No Comments