Skip to content

Commit 4837528

Browse files
authored
Basic day_2
1 parent 82bc348 commit 4837528

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed

Python Day2.ipynb

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"id": "f6c133e0-aa94-45c3-94e8-7b04812152d6",
7+
"metadata": {},
8+
"outputs": [
9+
{
10+
"name": "stdout",
11+
"output_type": "stream",
12+
"text": [
13+
"abu siddig\n"
14+
]
15+
}
16+
],
17+
"source": [
18+
"fullname = 'abu siddig'\n",
19+
"print(fullname)"
20+
]
21+
},
22+
{
23+
"cell_type": "code",
24+
"execution_count": 2,
25+
"id": "058937b4-12b0-4202-a08d-b75d08041a29",
26+
"metadata": {},
27+
"outputs": [
28+
{
29+
"ename": "SyntaxError",
30+
"evalue": "invalid syntax (91625403.py, line 1)",
31+
"output_type": "error",
32+
"traceback": [
33+
"\u001b[1;36m Cell \u001b[1;32mIn[2], line 1\u001b[1;36m\u001b[0m\n\u001b[1;33m full name = 'abu siddig'\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
34+
]
35+
}
36+
],
37+
"source": [
38+
"full name = 'abu siddig'\n",
39+
"print(full name)"
40+
]
41+
},
42+
{
43+
"cell_type": "code",
44+
"execution_count": 3,
45+
"id": "5c6db937-0b56-4da9-8585-d3cc58de1c5c",
46+
"metadata": {},
47+
"outputs": [
48+
{
49+
"ename": "SyntaxError",
50+
"evalue": "invalid decimal literal (2916292818.py, line 1)",
51+
"output_type": "error",
52+
"traceback": [
53+
"\u001b[1;36m Cell \u001b[1;32mIn[3], line 1\u001b[1;36m\u001b[0m\n\u001b[1;33m 1name = 'abu siddig'\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid decimal literal\n"
54+
]
55+
}
56+
],
57+
"source": [
58+
"1name = 'abu siddig'\n",
59+
"print(1name)"
60+
]
61+
},
62+
{
63+
"cell_type": "code",
64+
"execution_count": 4,
65+
"id": "87f402c4-d1d5-4b70-9252-4ec0c0351a33",
66+
"metadata": {},
67+
"outputs": [
68+
{
69+
"name": "stdout",
70+
"output_type": "stream",
71+
"text": [
72+
"Abu Siddig\n"
73+
]
74+
}
75+
],
76+
"source": [
77+
"fullname = 'abu siddig'\n",
78+
"print(fullname.title())"
79+
]
80+
},
81+
{
82+
"cell_type": "code",
83+
"execution_count": 5,
84+
"id": "a93088d7-bfbe-4021-9d8f-5337ac840ca6",
85+
"metadata": {},
86+
"outputs": [
87+
{
88+
"name": "stdout",
89+
"output_type": "stream",
90+
"text": [
91+
"Abu Siddig\n",
92+
"ABU SIDDIG\n",
93+
"abu siddig\n"
94+
]
95+
}
96+
],
97+
"source": [
98+
"fullname = 'abu siddig'\n",
99+
"print(fullname.title())\n",
100+
"print(fullname.upper())\n",
101+
"print(fullname.lower())"
102+
]
103+
},
104+
{
105+
"cell_type": "code",
106+
"execution_count": null,
107+
"id": "9cae839b-add4-431d-84e0-ccd34219fe1a",
108+
"metadata": {},
109+
"outputs": [],
110+
"source": []
111+
}
112+
],
113+
"metadata": {
114+
"kernelspec": {
115+
"display_name": "Python 3 (ipykernel)",
116+
"language": "python",
117+
"name": "python3"
118+
},
119+
"language_info": {
120+
"codemirror_mode": {
121+
"name": "ipython",
122+
"version": 3
123+
},
124+
"file_extension": ".py",
125+
"mimetype": "text/x-python",
126+
"name": "python",
127+
"nbconvert_exporter": "python",
128+
"pygments_lexer": "ipython3",
129+
"version": "3.12.7"
130+
}
131+
},
132+
"nbformat": 4,
133+
"nbformat_minor": 5
134+
}

0 commit comments

Comments
 (0)