Skip to content

Commit 391c4fc

Browse files
committed
update
1 parent 136dd2d commit 391c4fc

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

00 Examples/lecture09/04 Loop.ipynb

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,26 @@
159159
},
160160
{
161161
"cell_type": "code",
162-
"execution_count": null,
162+
"execution_count": 17,
163163
"id": "e011d6a4-a3f2-4509-8962-54e52a1ee13e",
164164
"metadata": {},
165-
"outputs": [],
165+
"outputs": [
166+
{
167+
"name": "stdin",
168+
"output_type": "stream",
169+
"text": [
170+
"Enter Start char - A\n",
171+
"Enter Start char - R\n"
172+
]
173+
},
174+
{
175+
"name": "stdout",
176+
"output_type": "stream",
177+
"text": [
178+
"A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | "
179+
]
180+
}
181+
],
166182
"source": [
167183
"start_char = input('Enter Start char - ')\n",
168184
"end_char = input('Enter Start char - ')\n",
@@ -171,7 +187,7 @@
171187
"end = ord(end_char)\n",
172188
"\n",
173189
"for i in range(start,end+1):\n",
174-
" print(i)"
190+
" print(chr(i),end=' | ')"
175191
]
176192
},
177193
{

0 commit comments

Comments
 (0)