Understanding Data Types in Python for Predictable Code

🎯Day 3 - Data Types in Python 🚀 I’ve realized one of the first things to truly understand in Python is that everything has a type. Knowing this makes your code way more predictable and less error-prone! Here’s a little snippet from my own learning journey: #Code : name = "Geetanjali" # str age = 87 # int height = 5.4 # float skills = ["Python", "SQL", "Pandas"] # list details = {"role": "SSE", "domain": "Finance"} # dict print(name, type(name)) print(age, type(age)) print(height, type(height)) print(skills, type(skills)) print(details, type(details)) #Output : Geetanjali <class 'str'> 87 <class 'int'> 5.4 <class 'float'> ['Python', 'SQL', 'Pandas'] <class 'list'> {'role': 'SSE', 'domain': 'Finance'} <class 'dict'> 💡 Quick Tip: • Mutable = can change (like list and dict) • Immutable = cannot change (like str and tuple) I found that understanding data types not only helps in writing cleaner Python code but also gives me more confidence when debugging or building projects. #Python #SQL #Pandas #DataAnalytics #DataScience #LearningJourney #DataEngineer #OpenToWork #CareerGrowth #LinkedIn #DataCommunity #LearningEveryday #CareerGrowth #DataCareer #GrowthMindset #KeepLearning #Upskilling #DataCommunity #ContinuousLearning #JobSearch

  • text, letter

To view or add a comment, sign in

Explore content categories