Skip to content

Commit f7be51a

Browse files
committed
.\Tarea2_Prep_Kathe.ipynb
1 parent d535e48 commit f7be51a

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

03 - Flujos de Control/Tarea2_Prep_Kathe.ipynb

+66
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,72 @@
375375
"source": [
376376
"5. Crear una variable que contenga un número entero y realizar un ciclo for la misma cantidad de ciclos"
377377
]
378+
},
379+
{
380+
"cell_type": "code",
381+
"execution_count": 32,
382+
"metadata": {},
383+
"outputs": [
384+
{
385+
"name": "stdout",
386+
"output_type": "stream",
387+
"text": [
388+
"0\n",
389+
"1\n",
390+
"2\n",
391+
"3\n",
392+
"4\n",
393+
"5\n",
394+
"6\n"
395+
]
396+
}
397+
],
398+
"source": [
399+
"n = 7\n",
400+
"for i in range(0, n):\n",
401+
" print(i)"
402+
]
403+
},
404+
{
405+
"cell_type": "code",
406+
"execution_count": 33,
407+
"metadata": {},
408+
"outputs": [
409+
{
410+
"name": "stdout",
411+
"output_type": "stream",
412+
"text": [
413+
"11\n"
414+
]
415+
}
416+
],
417+
"source": [
418+
"n = 12\n",
419+
"for i in range(0, n):\n",
420+
" pass\n",
421+
"print(i)"
422+
]
423+
},
424+
{
425+
"cell_type": "code",
426+
"execution_count": 34,
427+
"metadata": {},
428+
"outputs": [],
429+
"source": [
430+
"n = 20\n",
431+
"j = 1\n",
432+
"for i in range(j, n):\n",
433+
" continue"
434+
]
435+
},
436+
{
437+
"cell_type": "code",
438+
"execution_count": null,
439+
"metadata": {},
440+
"outputs": [],
441+
"source": [
442+
"n = 2520"
443+
]
378444
}
379445
],
380446
"metadata": {

0 commit comments

Comments
 (0)