Skip to content

Commit 8f59525

Browse files
committed
Create Untitled2.ipynb
1 parent 2d3b4aa commit 8f59525

File tree

1 file changed

+183
-0
lines changed

1 file changed

+183
-0
lines changed

Untitled2.ipynb

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

0 commit comments

Comments
 (0)