Skip to content

Commit 2f4b6fc

Browse files
Day 4: Variables & Data Type
1 parent 7fcece3 commit 2f4b6fc

File tree

4 files changed

+144
-0
lines changed

4 files changed

+144
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
age = 10 # Integer Number
2+
age2 = 10.5 # Flaot Number
3+
4+
name = "tanim" # String
5+
6+
is_Student = True # Boolean
7+
8+
fruits = ["apple", "mango", "banana"]
9+
10+
cordinates = (10.5, 20.9, 10.8)
11+
12+
person = {"name": "Tanim", "age3": 23, "is_Student": True}
13+
14+
print(age)
15+
print(age2)
16+
print(name)
17+
print(is_Student)
18+
print(fruits)
19+
print(cordinates)
20+
print(person)
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Python Programming - Day 4: Variables & Data Types
2+
3+
## Variables & Data Types
4+
5+
### **Introduction**
6+
স্বাগতম **100 Days of Python** সিরিজের ৪র্থ দিনে! আজকের ভিডিওতে আমরা শিখবো:
7+
- **ভেরিয়েবল (Variables)** কী এবং কেন ব্যবহার করা হয় 🏷️
8+
- **ডাটা টাইপস (Data Types)** কী এবং কেন গুরুত্বপূর্ণ 🏗️
9+
- **Python-এ বিভিন্ন ডাটা টাইপস এবং উদাহরণ** 📝
10+
11+
---
12+
13+
## **Python-এ ভেরিয়েবল (Variables)**
14+
15+
ভেরিয়েবল হলো এমন একটি স্টোরেজ/কন্টেইনার। যেখানে আমরা ডাটা সংরক্ষণ করতে পারি।
16+
17+
### **ভেরিয়েবল ডিক্লেয়ারেশন:**
18+
```python
19+
name = "Tanim"
20+
age = 22
21+
is_student = True
22+
```
23+
### Output:
24+
```
25+
Tanim
26+
22
27+
True
28+
```
29+
30+
🔹 **Python-এ ভেরিয়েবল ডায়নামিকভাবে কাজ করে, তাই ডাটা টাইপ নির্ধারণ করার দরকার হয় না।**
31+
32+
---
33+
34+
35+
## **ভেরিয়েবল নেমিং কনভেনশন**
36+
🔹 **একটি ভেরিয়েবল নাম দিতে গেলে কিছু নিয়ম অনুসরণ করতে হবে:**
37+
38+
✅ ভেরিয়েবল নাম **A-Z, a-z, 0-9, এবং `_`** ধারণ করতে পারে।
39+
40+
✅ নামের শুরুতে সংখ্যা ব্যবহার করা যাবে না। ❌ `1name = "Tanim"` (ভুল ❌)
41+
42+
✅ নামটি অর্থবোধক হওয়া উচিত। **`x = 10` (কম বোঝা যায়) vs `age = 10` (ভালো ✅)**
43+
44+
`camelCase`, `snake_case` ব্যবহার করা যায়। উদাহরণ: `myVariable`, `my_variable`
45+
46+
---
47+
48+
## **Python-এ ডাটা টাইপস (Data Types)**
49+
50+
Python-এ বিভিন্ন ধরণের ডাটা টাইপ রয়েছে:
51+
52+
| ডাটা টাইপ | বর্ণনা | ইংরেজি নাম | উদাহরণ |
53+
|-----------|--------|--------|--------|
54+
| `int` | পূর্ণসংখ্যা | Integer Number | `age = 22` |
55+
| `float` | দশমিক সংখ্যা| Floating Numebr | `pi = 3.14` |
56+
| `str` | স্ট্রিং (টেক্সট)| String| `name = "Tanim"` |
57+
| `bool` | সত্য বা মিথ্যা| Boolean | `is_student = True` |
58+
| `list` | একাধিক মান সংরক্ষণ| List | `fruits = ["Apple", "Banana", "Mango"]` |
59+
| `tuple` | অপরিবর্তনীয় লিস্ট| Tuple | `colors = ("Red", "Green", "Blue")` |
60+
| `dict` | কী-ভ্যালু পেয়ার | Dictionary | `person = {"name": "Tanim", "age": 22}` |
61+
| `set` | ইউনিক আইটেমের সংগ্রহ| Set | `unique_nums = {1, 2, 3, 4}` |
62+
63+
64+
### **উদাহরণ:**
65+
```python
66+
# Integer
67+
age = 22
68+
69+
# Float
70+
pi = 3.1416
71+
72+
# String
73+
name = "Tanim"
74+
75+
# Boolean
76+
is_programmer = True
77+
78+
# List
79+
fruits = ["Apple", "Banana", "Mango"]
80+
81+
# Tuple
82+
days = ("Sunday", "Monday", "Tuesday")
83+
84+
# Dictionary
85+
student = {"name": "Tanim", "age": 22, "course": "Python"}
86+
```
87+
### Output:
88+
```
89+
22
90+
3.1416
91+
Tanim
92+
True
93+
['Apple', 'Banana', 'Mango']
94+
('Sunday', 'Monday', 'Tuesday')
95+
{'name': 'Tanim', 'age': 22, 'course': 'Python'}
96+
```
97+
98+
---
99+
100+
## **Today's Challenge! 🎯**
101+
✅ নিচের কোডটি রান করুন এবং আউটপুট পর্যবেক্ষণ করুন:
102+
```python
103+
name = input("Write Your Name: ")
104+
age = int(input("Type Your Age: "))
105+
print(f"Welcome {name}! Your Age {age} Years!")
106+
```
107+
📢 **কমেন্টে জানান, আপনি সফলভাবে কোড রান করতে পেরেছেন কিনা!** 💬
108+
109+
---
110+
111+
## **Next Topic: Operators in Python!**
112+
🔔 **তাই, ভিডিওটি লাইক করুন, কমেন্ট করুন, এবং চ্যানেলটি সাবস্ক্রাইব করুন!** 🚀
113+
114+
👉 **CodeWithTanim - 100 Days of Python 🚀**
115+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
print(age)
2+
print(age2)
3+
print(name)
4+
print(is_Student)
5+
print(fruits)
6+
print(cordinates)
7+
print(person)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
x = 10
2+
name = "Tanim"

0 commit comments

Comments
 (0)