Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

.ipynb_checkpoints/*
.DS_Store
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"go.goroot": "/home/nick/.local/share/mise/installs/go/1.24.4",
"debug.javascript.defaultRuntimeExecutable": {
"pwa-node": "/home/nick/.local/share/mise/shims/node"
},
"go.alternateTools": {
"go": "/home/nick/.local/share/mise/shims/go",
"dlv": "/home/nick/.local/share/mise/shims/dlv",
"gopls": "/home/nick/.local/share/mise/shims/gopls"
}
}
280 changes: 140 additions & 140 deletions 01_string_input_print.ipynb
Original file line number Diff line number Diff line change
@@ -1,141 +1,141 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"source": [
"# 1. Texto, preguntas y arte\n",
"\n",
"## Cadenas de caracteres, `input()` y `print()`\n",
"\n",
"[Learn Python with Jupyter](https://learnpythonwithjupyter.com/) (Aprende Python con Jupyter): [Serena Bonaretti](https://sbonaretti.github.io/) \n",
"Tradución al español mexicano (es-MX): [Rodrigo Ernesto Álvarez Aguilera](https://incognia.github.io/) \n",
"Licencia de contenido: [CC BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/2.0/). Licencia de código: [GNU-GPL v3](https://www.gnu.org/licenses/gpl-3.0.en.html) \n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"## Cadenas de caracteres (strings)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- Observa las siguientes cadenas y ejecuta las celdas:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"\"esto es una cadena de texto\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"'todo lo que escribas dentro de las comillas es una cadena de texto'"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"## Haciendo preguntas: input()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- Observa los siguientes ejemplos y ejecuta las celdas:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"input(\"¿Cómo te llamas?\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"input(\"¿De dónde eres?\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"## Arte de texto ASCII: print()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"- Observa el siguiente ejemplo y ejecuta las celdas:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print (\" /\\_/\\ \")\n",
"print (\" >^.^< \")\n",
"print (\" / \\ \")\n",
"print (\" (___)___\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.10.12"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
"nbformat_minor": 4
}
"cells": [
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"source": [
"# 1. Texto, preguntas y arte\n",
"\n",
"## Cadenas de caracteres, `input()` y `print()`\n",
"\n",
"[Learn Python with Jupyter](https://learnpythonwithjupyter.com/) (Aprende Python con Jupyter): [Serena Bonaretti](https://sbonaretti.github.io/) \n",
"Tradución al español mexicano (es-MX): [Rodrigo Ernesto Álvarez Aguilera](https://incognia.github.io/) \n",
"Licencia de contenido: [CC BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/2.0/). Licencia de código: [GNU-GPL v3](https://www.gnu.org/licenses/gpl-3.0.en.html) \n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"## 1. Cadenas de caracteres (strings)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- Observa las siguientes cadenas y ejecuta las celdas:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"\"esto es una cadena de texto\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"'todo lo que escribas dentro de las comillas es una cadena de texto'"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"## 2. Haciendo preguntas: input()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- Observa los siguientes ejemplos y ejecuta las celdas:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"input(\"¿Cómo te llamas?\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"input(\"¿De dónde eres?\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"## 3. Arte de texto ASCII: print()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"- Observa el siguiente ejemplo y ejecuta la celda:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print (\" /\\_/\\ \")\n",
"print (\" >^.^< \")\n",
"print (\" / \\ \")\n",
"print (\" (___)___\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.13.2"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Loading