Skip to content

Commit 0bc04e8

Browse files
authored
Add files via upload
1 parent d6bb476 commit 0bc04e8

File tree

1 file changed

+191
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)