Skip to content

Commit b2155fc

Browse files
authored
Merge pull request #30 from rvsweb/rama_local
Atencion - Nueva Subida
2 parents 77ef427 + f73259a commit b2155fc

12 files changed

+523
-249
lines changed
Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,80 @@
11
{
2-
"nbformat": 4,
3-
"nbformat_minor": 0,
4-
"metadata": {
5-
"colab": {
6-
"provenance": []
7-
},
8-
"kernelspec": {
9-
"name": "python3",
10-
"display_name": "Python 3"
11-
},
12-
"language_info": {
13-
"name": "python"
14-
}
15-
},
162
"cells": [
173
{
184
"cell_type": "markdown",
5+
"metadata": {
6+
"id": "X2Q3sYvlbzpm"
7+
},
198
"source": [
209
"## Primer programa con Python.\n",
2110
"\n",
2211
"Usaremos la función print() que veremos más adelante con profundidad."
23-
],
24-
"metadata": {
25-
"id": "X2Q3sYvlbzpm"
26-
}
12+
]
2713
},
2814
{
2915
"cell_type": "code",
30-
"source": [
31-
"print('Hola Mundo')"
32-
],
16+
"execution_count": null,
3317
"metadata": {
3418
"colab": {
3519
"base_uri": "https://localhost:8080/"
3620
},
3721
"id": "90Pbp_fZb4im",
3822
"outputId": "5310e6ce-a30f-4da1-a71c-c3afdc693114"
3923
},
40-
"execution_count": null,
4124
"outputs": [
4225
{
43-
"output_type": "stream",
4426
"name": "stdout",
27+
"output_type": "stream",
4528
"text": [
4629
"Hola Mundo\n"
4730
]
4831
}
32+
],
33+
"source": [
34+
"print('Hola Mundo')"
4935
]
5036
},
5137
{
5238
"cell_type": "code",
53-
"source": [],
39+
"execution_count": 1,
5440
"metadata": {
5541
"id": "bCwMfoCvb6dq"
5642
},
57-
"execution_count": null,
58-
"outputs": []
43+
"outputs": [
44+
{
45+
"name": "stdout",
46+
"output_type": "stream",
47+
"text": [
48+
"Python\n"
49+
]
50+
}
51+
],
52+
"source": [
53+
"print(\"Python\")"
54+
]
55+
}
56+
],
57+
"metadata": {
58+
"colab": {
59+
"provenance": []
60+
},
61+
"kernelspec": {
62+
"display_name": "Python 3",
63+
"name": "python3"
64+
},
65+
"language_info": {
66+
"codemirror_mode": {
67+
"name": "ipython",
68+
"version": 3
69+
},
70+
"file_extension": ".py",
71+
"mimetype": "text/x-python",
72+
"name": "python",
73+
"nbconvert_exporter": "python",
74+
"pygments_lexer": "ipython3",
75+
"version": "3.11.6"
5976
}
60-
]
61-
}
77+
},
78+
"nbformat": 4,
79+
"nbformat_minor": 0
80+
}
Lines changed: 38 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
{
2+
"nbformat": 4,
3+
"nbformat_minor": 0,
4+
"metadata": {
5+
"colab": {
6+
"provenance": []
7+
},
8+
"kernelspec": {
9+
"name": "python3",
10+
"display_name": "Python 3"
11+
},
12+
"language_info": {
13+
"name": "python"
14+
}
15+
},
216
"cells": [
317
{
418
"cell_type": "markdown",
5-
"metadata": {
6-
"id": "VilesoFF9zpM"
7-
},
819
"source": [
920
"## Estructuras Condicionales\n",
1021
"\n",
@@ -22,7 +33,10 @@
2233
"\n",
2334
"### Ejemplo\n",
2435
"Programa que pida la edad y diga si es mayor de edad.\n"
25-
]
36+
],
37+
"metadata": {
38+
"id": "VilesoFF9zpM"
39+
}
2640
},
2741
{
2842
"cell_type": "code",
@@ -40,9 +54,6 @@
4054
},
4155
{
4256
"cell_type": "markdown",
43-
"metadata": {
44-
"id": "XVoIRniw_WA7"
45-
},
4657
"source": [
4758
"\n",
4859
"## Alternativa doble\n",
@@ -56,29 +67,29 @@
5667
"### Ejemplo\n",
5768
"Programa que pida la edad y diga si es mayor de edad o menor de edad.\n",
5869
"\n"
59-
]
70+
],
71+
"metadata": {
72+
"id": "XVoIRniw_WA7"
73+
}
6074
},
6175
{
6276
"cell_type": "code",
63-
"execution_count": null,
64-
"metadata": {
65-
"id": "UAkvLaG6_nOO"
66-
},
67-
"outputs": [],
6877
"source": [
6978
"edad = int(input(\"Dime tu edad:\"))\n",
7079
"if edad>=18:\n",
7180
" print(\"Eres mayor de edad\")\n",
7281
"else:\n",
7382
" print(\"Eres menor de edad\")\n",
7483
"print(\"Programa terminado\")"
75-
]
84+
],
85+
"metadata": {
86+
"id": "UAkvLaG6_nOO"
87+
},
88+
"execution_count": null,
89+
"outputs": []
7690
},
7791
{
7892
"cell_type": "markdown",
79-
"metadata": {
80-
"id": "Nidd2_E1_nnh"
81-
},
8293
"source": [
8394
"\n",
8495
"## Alternativa múltiple\n",
@@ -112,24 +123,13 @@
112123
"\n",
113124
"En python3 utilizamos la alternativa múltiple:\n",
114125
"\n"
115-
]
126+
],
127+
"metadata": {
128+
"id": "Nidd2_E1_nnh"
129+
}
116130
},
117131
{
118132
"cell_type": "code",
119-
"execution_count": 1,
120-
"metadata": {
121-
"id": "EkVuPY3k_zaV"
122-
},
123-
"outputs": [
124-
{
125-
"name": "stdout",
126-
"output_type": "stream",
127-
"text": [
128-
"Sobresaliente\n",
129-
"Programa terminado\n"
130-
]
131-
}
132-
],
133133
"source": [
134134
"nota = int(input(\"Dime tu nota:\"))\n",
135135
"if nota >=1 and nota <= 4:\n",
@@ -145,65 +145,12 @@
145145
"else:\n",
146146
" print(\"Nota incorrecta\")\n",
147147
"print(\"Programa terminado\")"
148-
]
149-
},
150-
{
151-
"cell_type": "code",
152-
"execution_count": 3,
153-
"metadata": {},
154-
"outputs": [
155-
{
156-
"name": "stdout",
157-
"output_type": "stream",
158-
"text": [
159-
"Nivel 5 : 98\n",
160-
"Final : 98\n"
161-
]
162-
}
163148
],
164-
"source": [
165-
"import random as aleatorio\n",
166-
"\n",
167-
"numero = aleatorio.randint(1, 100)\n",
168-
"if numero >= 0 and numero <= 10:\n",
169-
" print(\"Nivel 1 : \", numero)\n",
170-
"if numero >= 10 and numero <= 30:\n",
171-
" print(\"Nivel 2 : \", numero)\n",
172-
"if numero >= 30 and numero <= 50:\n",
173-
" print(\"Nivel 3 : \", numero)\n",
174-
" print(numero)\n",
175-
"if numero >= 50 and numero <= 70:\n",
176-
" print(\"Nivel 4 : \", numero)\n",
177-
" print(numero)\n",
178-
"if numero >= 70 and numero <= 100:\n",
179-
" print(\"Nivel 5 : \", numero)\n",
180-
" \n",
181-
"print(\"Final : \", numero)\n",
182-
" "
183-
]
184-
}
185-
],
186-
"metadata": {
187-
"colab": {
188-
"provenance": []
189-
},
190-
"kernelspec": {
191-
"display_name": "Python 3",
192-
"name": "python3"
193-
},
194-
"language_info": {
195-
"codemirror_mode": {
196-
"name": "ipython",
197-
"version": 3
149+
"metadata": {
150+
"id": "EkVuPY3k_zaV"
198151
},
199-
"file_extension": ".py",
200-
"mimetype": "text/x-python",
201-
"name": "python",
202-
"nbconvert_exporter": "python",
203-
"pygments_lexer": "ipython3",
204-
"version": "3.11.6"
152+
"execution_count": null,
153+
"outputs": []
205154
}
206-
},
207-
"nbformat": 4,
208-
"nbformat_minor": 0
209-
}
155+
]
156+
}

0 commit comments

Comments
 (0)