Skip to content

Commit 1dab2c1

Browse files
authored
Python Tasks - 24th January 2025
Task:1- variable Class Explanation Code Task:2- Python variable Task3- Print() Task4 - Identifier & Datatype
0 parents  commit 1dab2c1

4 files changed

+4099
-0
lines changed

BasicCodePractice.ipynb

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "27531f8a-9c0c-41d4-8594-38891ddd7bc3",
6+
"metadata": {},
7+
"source": [
8+
"# Introduction\n",
9+
"# Day 1 - 30DaysOfPython Challenge"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": 2,
15+
"id": "eb841fae-d259-421e-8da6-1baaf7cda4ee",
16+
"metadata": {},
17+
"outputs": [
18+
{
19+
"name": "stdout",
20+
"output_type": "stream",
21+
"text": [
22+
"5\n",
23+
"1\n",
24+
"6\n",
25+
"1.5\n",
26+
"9\n",
27+
"1\n",
28+
"1\n"
29+
]
30+
}
31+
],
32+
"source": [
33+
"print(3 + 2) \n",
34+
"print(3 - 2) \n",
35+
"print(3 * 2) \n",
36+
"print(3 / 2) \n",
37+
"print(3 ** 2)\n",
38+
"print(3 % 2) \n",
39+
"print(3 // 2)"
40+
]
41+
},
42+
{
43+
"cell_type": "markdown",
44+
"id": "af659a93-aed5-4a28-94d3-b161d372f786",
45+
"metadata": {},
46+
"source": [
47+
"# Checking data types"
48+
]
49+
},
50+
{
51+
"cell_type": "code",
52+
"execution_count": 5,
53+
"id": "4cdabc31-64fc-4111-93b2-5f48a169ae94",
54+
"metadata": {},
55+
"outputs": [
56+
{
57+
"name": "stdout",
58+
"output_type": "stream",
59+
"text": [
60+
"<class 'int'>\n",
61+
"<class 'float'>\n",
62+
"<class 'complex'>\n",
63+
"<class 'str'>\n",
64+
"<class 'list'>\n",
65+
"<class 'dict'>\n",
66+
"<class 'set'>\n",
67+
"<class 'tuple'>\n",
68+
"<class 'bool'>\n",
69+
"<class 'bool'>\n"
70+
]
71+
}
72+
],
73+
"source": [
74+
"print(type(10))\n",
75+
"print(type(3.14))\n",
76+
"print(type(1 + 3j))\n",
77+
"print(type('Venkatesh'))\n",
78+
"print(type([1, 2, 3])) \n",
79+
"print(type({'name':'Venkatesh'}))\n",
80+
"print(type({9.8, 3.14, 2.7})) \n",
81+
"print(type((9.8, 3.14, 2.7))) \n",
82+
"print(type(3 == 3)) \n",
83+
"print(type(3 >= 3)) "
84+
]
85+
},
86+
{
87+
"cell_type": "code",
88+
"execution_count": null,
89+
"id": "da27f715-76fe-4557-9c56-9d5a2d705faa",
90+
"metadata": {},
91+
"outputs": [],
92+
"source": []
93+
},
94+
{
95+
"cell_type": "code",
96+
"execution_count": null,
97+
"id": "8c322d00-4caa-41e7-af75-8688f0126a93",
98+
"metadata": {},
99+
"outputs": [],
100+
"source": []
101+
}
102+
],
103+
"metadata": {
104+
"kernelspec": {
105+
"display_name": "Python 3 (ipykernel)",
106+
"language": "python",
107+
"name": "python3"
108+
},
109+
"language_info": {
110+
"codemirror_mode": {
111+
"name": "ipython",
112+
"version": 3
113+
},
114+
"file_extension": ".py",
115+
"mimetype": "text/x-python",
116+
"name": "python",
117+
"nbconvert_exporter": "python",
118+
"pygments_lexer": "ipython3",
119+
"version": "3.12.4"
120+
}
121+
},
122+
"nbformat": 4,
123+
"nbformat_minor": 5
124+
}

0 commit comments

Comments
 (0)