Skip to content

Commit 5fc9645

Browse files
committed
Create Untitled4.ipynb
1 parent 7a92ace commit 5fc9645

File tree

1 file changed

+138
-0
lines changed

1 file changed

+138
-0
lines changed

Untitled4.ipynb

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 12,
6+
"metadata": {},
7+
"outputs": [
8+
{
9+
"name": "stdout",
10+
"output_type": "stream",
11+
"text": [
12+
"10\n"
13+
]
14+
}
15+
],
16+
"source": [
17+
"a=10\n",
18+
"a\n",
19+
"print(a)\n",
20+
"a\n",
21+
"b=9"
22+
]
23+
},
24+
{
25+
"cell_type": "code",
26+
"execution_count": 10,
27+
"metadata": {},
28+
"outputs": [
29+
{
30+
"name": "stdout",
31+
"output_type": "stream",
32+
"text": [
33+
"<class 'int'>\n"
34+
]
35+
}
36+
],
37+
"source": [
38+
"print(type(a))\n"
39+
]
40+
},
41+
{
42+
"cell_type": "code",
43+
"execution_count": null,
44+
"metadata": {},
45+
"outputs": [],
46+
"source": []
47+
},
48+
{
49+
"cell_type": "code",
50+
"execution_count": null,
51+
"metadata": {},
52+
"outputs": [],
53+
"source": []
54+
},
55+
{
56+
"cell_type": "code",
57+
"execution_count": 20,
58+
"metadata": {},
59+
"outputs": [
60+
{
61+
"name": "stdout",
62+
"output_type": "stream",
63+
"text": [
64+
"<class 'str'>\n"
65+
]
66+
},
67+
{
68+
"data": {
69+
"text/plain": [
70+
"'Hello World'"
71+
]
72+
},
73+
"execution_count": 20,
74+
"metadata": {},
75+
"output_type": "execute_result"
76+
}
77+
],
78+
"source": [
79+
"s=\"Hello World\"\n",
80+
"s\n",
81+
"print(type(s))\n",
82+
"s"
83+
]
84+
},
85+
{
86+
"cell_type": "code",
87+
"execution_count": 46,
88+
"metadata": {},
89+
"outputs": [
90+
{
91+
"name": "stdout",
92+
"output_type": "stream",
93+
"text": [
94+
"Hi\n"
95+
]
96+
}
97+
],
98+
"source": [
99+
"if 1>2 : \n",
100+
" print(\"Hello\") \n",
101+
" print(\"Hello\")\n",
102+
" print(\"Hello\") \n",
103+
"elif 1==1 :\n",
104+
" print(\"Hi\")\n",
105+
"else : \n",
106+
" print(\"World\")"
107+
]
108+
},
109+
{
110+
"cell_type": "code",
111+
"execution_count": null,
112+
"metadata": {},
113+
"outputs": [],
114+
"source": []
115+
}
116+
],
117+
"metadata": {
118+
"kernelspec": {
119+
"display_name": "Python 3",
120+
"language": "python",
121+
"name": "python3"
122+
},
123+
"language_info": {
124+
"codemirror_mode": {
125+
"name": "ipython",
126+
"version": 3
127+
},
128+
"file_extension": ".py",
129+
"mimetype": "text/x-python",
130+
"name": "python",
131+
"nbconvert_exporter": "python",
132+
"pygments_lexer": "ipython3",
133+
"version": "3.7.4"
134+
}
135+
},
136+
"nbformat": 4,
137+
"nbformat_minor": 4
138+
}

0 commit comments

Comments
 (0)