You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Day 1/notes and codes.md
+28-10Lines changed: 28 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,12 @@
12
12
|S.No.|topic name|Navigate|
13
13
|--|--|--|
14
14
|1|Intro to python|[Click Here](#intro-to-python)|
15
-
|2|Data Types in Python|[Click Here](#data-types-in-python)|
16
-
|2-1|String Data Type|[Click Here](#2-1-string-data-type)|
17
-
|2-2|Numeric Data Type|[Click Here](#2-2-numeric-data-type)|
18
-
|2-3|Boolean & None Data Type|[Click Here](#2-3-boolean-and-none-data-type)|
19
-
|2-4|Collection Data Type|[Click Here](#2-4-collection-data-type)|
15
+
|2|Defining a variable|[Click Here](#defining-a-variable)|
16
+
|3|Data Types in Python|[Click Here](#data-types-in-python)|
17
+
|3-1|String Data Type|[Click Here](#3-1-string-data-type)|
18
+
|3-2|Numeric Data Type|[Click Here](#3-2-numeric-data-type)|
19
+
|3-3|Boolean & None Data Type|[Click Here](#3-3-boolean-and-none-data-type)|
20
+
|3-4|Collection Data Type|[Click Here](#3-4-collection-data-type)|
20
21
21
22
22
23
## Intro to Python
@@ -36,6 +37,23 @@ Python is widely used in web development, automation, data analysis, machine lea
36
37
37
38
**[🔝Index](#index)**
38
39
40
+
---
41
+
42
+
## Defining a Variable
43
+
44
+
In Python a variable can be defined by taking name for a variable and then assign it some value using '=' to better understand it refer to the code block below,
45
+
46
+
Example:
47
+
```python
48
+
x=23# here x is the variable with 23 value assigned to it
49
+
name='shubham'# here "name" is the variable with 'shubham' value assigned to it
50
+
print(x) # o/p : 23
51
+
print(name) # o/p : shubham
52
+
```
53
+
To better understand it try running this code multiple time with different values.
54
+
55
+
**[🔝Index](#index)**
56
+
39
57
---
40
58
## Data Types in Python
41
59
@@ -51,7 +69,7 @@ Each type has unique properties and methods, and Python automatically manages me
51
69
52
70
**[🔝Index](#index)**
53
71
54
-
### 2-1 String Data Type
72
+
### 3-1 String Data Type
55
73
56
74
Strings (`str`) in Python represent sequences of Unicode characters. Strings are **immutable**, meaning once created, they cannot be changed directly.
Python provides several built-in collection data types that group multiple values into a single variable. These collections are versatile and widely used to store, organize, and manipulate data.
# Welcome ! to *Day 2* of Python for beginners series
2
+
-by **[Shubham](https://github.com/Shubham-S151)** from `Bit and Pi` YouTube Channel.
3
+
4
+
***Channel Link :***[](https://www.youtube.com/@BitandPi)
0 commit comments