Skip to content

Commit fa9f5df

Browse files
committed
today
1 parent f8a9ec8 commit fa9f5df

File tree

3 files changed

+134
-2
lines changed

3 files changed

+134
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cells": [],
3+
"metadata": {},
4+
"nbformat": 4,
5+
"nbformat_minor": 5
6+
}

Untitled.ipynb

+95-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,106 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": null,
5+
"execution_count": 8,
66
"id": "d7c0b6b8",
77
"metadata": {},
8+
"outputs": [
9+
{
10+
"name": "stdout",
11+
"output_type": "stream",
12+
"text": [
13+
"0\n",
14+
"1\n",
15+
"2\n",
16+
"3\n",
17+
"4\n",
18+
"5\n",
19+
"6\n",
20+
"7\n",
21+
"8\n",
22+
"9\n"
23+
]
24+
}
25+
],
26+
"source": [
27+
"for i in range (10):\n",
28+
" print(i)"
29+
]
30+
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": 18,
34+
"id": "e194bd5e",
35+
"metadata": {},
36+
"outputs": [
37+
{
38+
"name": "stdout",
39+
"output_type": "stream",
40+
"text": [
41+
"2 * 1 = 2\n",
42+
"2 * 2 = 4\n",
43+
"2 * 3 = 6\n",
44+
"2 * 4 = 8\n",
45+
"2 * 5 = 10\n",
46+
"2 * 6 = 12\n",
47+
"2 * 7 = 14\n",
48+
"2 * 8 = 16\n",
49+
"2 * 9 = 18\n",
50+
"2 * 10 = 20\n"
51+
]
52+
}
53+
],
54+
"source": [
55+
"for i in range(1, 11):\n",
56+
" print(n, \"*\", i, \"=\", n*i)"
57+
]
58+
},
59+
{
60+
"cell_type": "code",
61+
"execution_count": 16,
62+
"id": "83050625",
63+
"metadata": {},
64+
"outputs": [
65+
{
66+
"ename": "SyntaxError",
67+
"evalue": "invalid syntax (4152448263.py, line 1)",
68+
"output_type": "error",
69+
"traceback": [
70+
"\u001b[1;36m Input \u001b[1;32mIn [16]\u001b[1;36m\u001b[0m\n\u001b[1;33m n=1++\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
71+
]
72+
}
73+
],
74+
"source": [
75+
"n=1++\n",
76+
"for i in range(1, 11):\n",
77+
" print(n, \"*\", i, \"=\", n*i)\n",
78+
" continue\n",
79+
"\n"
80+
]
81+
},
82+
{
83+
"cell_type": "code",
84+
"execution_count": null,
85+
"id": "4896f196",
86+
"metadata": {},
887
"outputs": [],
988
"source": [
10-
"# number! prime or not\n"
89+
"n=1\n",
90+
"while n <= 10:\n",
91+
" for i in range (1, 11):\n",
92+
" print(n,\"*\",i,\"=\",n*i)\n",
93+
"else:\n",
94+
" pass\n",
95+
"n+=1"
1196
]
97+
},
98+
{
99+
"cell_type": "code",
100+
"execution_count": null,
101+
"id": "bf3117ad",
102+
"metadata": {},
103+
"outputs": [],
104+
"source": []
12105
}
13106
],
14107
"metadata": {

Untitled2.ipynb

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "7f69aa4e",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": []
10+
}
11+
],
12+
"metadata": {
13+
"kernelspec": {
14+
"display_name": "Python 3 (ipykernel)",
15+
"language": "python",
16+
"name": "python3"
17+
},
18+
"language_info": {
19+
"codemirror_mode": {
20+
"name": "ipython",
21+
"version": 3
22+
},
23+
"file_extension": ".py",
24+
"mimetype": "text/x-python",
25+
"name": "python",
26+
"nbconvert_exporter": "python",
27+
"pygments_lexer": "ipython3",
28+
"version": "3.9.12"
29+
}
30+
},
31+
"nbformat": 4,
32+
"nbformat_minor": 5
33+
}

0 commit comments

Comments
 (0)