diff --git a/Ejercicio01.ipynb b/Ejercicio01.ipynb new file mode 100644 index 0000000000000000000000000000000000000000..20835adf2c11fae9d6645c62462e2dfa28d90dce --- /dev/null +++ b/Ejercicio01.ipynb @@ -0,0 +1,63 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Ingrese-guión-palabras-por-separadas\n" + ] + } + ], + "source": [ + "#print('Ingrese palabras separadas por guión (-):')\n", + "#entrada=input()\n", + "entrada=\"Ingrese-palabras-separadas-por-guión\"\n", + "lista=entrada.split('-')\n", + "salida=sorted(lista)\n", + "print ('-'.join(salida))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.3" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +}