Here are common data types in programming with examples:
1. Integer 🧮
age = 25
🐶 Example: Counting animals in a zoo
💻 Use case: age
stores numerical values without decimal points.
2. String 📝
name = "Alice"
📖 Example: Book titles or user names
🔗 Note: Visit /en/data_types for more details.
3. Boolean ☑️
is_student = True
📊 Example: Tracking user status
💡 Tip: Use True
/False
for conditions in logic.
4. Float 📈
price = 19.99
🛍️ Example: Pricing items in a store
🖼️ Image:
5. List 📦
fruits = ["apple", "banana", "cherry"]
🥗 Example: Grocery shopping list
🌐 Expand: Check /en/examples for interactive demos.
6. Dictionary 📖
student_info = {"name": "Bob", "age": 20}
🎓 Example: Storing student data
🔍 Image:
For advanced topics, explore our Data Types Guide! 🚀