Python Data Types: Integers, Floats, Strings & More

🚀 Day 1/30 – Introduction to Python Data Types Today I started revising the basics of Python Data Types as part of my #30DaysOfPython challenge. Understanding data types is very important because every value in Python belongs to a specific type. 🔹 Main Data Types in Python: 1️⃣ int – Integer numbers Example: x = 10 2️⃣ float – Decimal numbers y = 69.9 3️⃣ str – Sequence of characters (written inside quotes) name = "Vyshu " 4️⃣ bool – Boolean values True False (True acts like 1, False acts like 0) 5️⃣ complex – Numbers with real and imaginary parts z = 2 + 3j ---------------------------------------------------------------------- 🔁 Mutable vs Immutable ✔ Mutable → Can be changed Examples: list, set, dict ✔ Immutable → Cannot be changed after creation Examples: int, str, float, bool, complex, tuple ---------------------------------------------------------------------- 💡 What I Learned Today: Python supports different types of data. Some data types can be modified (mutable), and some cannot (immutable). Understanding data types helps in writing better programs. Looking forward to learning more tomorrow 🚀 #Python #PythonBasics #100DaysOfCode #LearningJourney #CVCorpInstitute #30DaysOfPython

To view or add a comment, sign in

Explore content categories