🌙 Day 14/100 | #100DaysOfCode 🚀 Continuing my Python learning journey — one concept at a time 🐍💻 📌 Today’s Topic: Type of Conversion in Python Today I learned how Python converts one data type into another, which is super helpful while working with user input and calculations. 🔹 Implicit Conversion Python automatically converts one data type to another. Example: int → float during calculations. 🔹 Explicit Conversion (Type Casting) We manually convert data types using functions like: int(), float(), str(), list() etc. This helped me understand how to avoid errors and handle data properly in real programs. Slow progress, but strong foundation 💪 Learning daily and trusting the process ✨ 👉 Tomorrow again, with a new concept! #Python #LearningPython #CodingJourney #DeveloperInMaking #Consistency #DailyLearning #TechSkills #FromBasicsToAdvanced
Python Data Type Conversion
More Relevant Posts
-
Day 4 of Learning Python 🐍 Topic: Swapping of Two Variables Today I learned how to swap the values of two variables in Python — a simple concept, but super powerful in problem-solving and logic building. 🔁 What is Swapping? Swapping means exchanging the values of two variables. If a = 5 and b = 10, after swapping 👉 a = 10 and b = 5. 🧠 Pythonic Way (No Third Variable Needed!) Copy code Python a = 5 b = 10 a, b = b, a print(a) # 10 print(b) # 5 ✨ Python makes it clean and elegant using tuple unpacking. Every small concept I learn builds my confidence step by step 🚀 Excited for Day 5! #PythonLearning #Day4 #SwappingVariables #CodeNewbie #LearnPython #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Python Loops Practice – for & while Loops Explained with Examples 🐍 Today I practiced all major loop concepts in Python using real examples 👨💻✨ 📌 Loops Covered: 🔹 for loop ✔ Sum of first n natural numbers ✔ Factorial of a number ✔ Looping using range() 🔹 while loop ✔ Sum of first n natural numbers ✔ Condition-based iteration ✔ Manual increment and termination 🔹 User Input Handling ✔ Dynamic factorial calculation using input() ✔ Making programs interactive 📌 What I learned: ✅ When to use for vs while loop ✅ How initialization, condition, and increment work ✅ Avoiding infinite loops ✅ Writing clean and readable loop logic Every small program strengthens problem-solving skills 💡 Python fundamentals are the backbone of advanced development 🚀 Consistency > Motivation 💪 #Python #PythonLoops #ForLoop #WhileLoop #Factorial #PythonBasics #BCAStudent #CodingPractice #LearningByDoing #DeveloperJourney #100DaysOfCode
To view or add a comment, sign in
-
-
Day 5 of my Python Learning Journey 🚀 Today, I learned about Type Casting in Python — specifically which data types cannot be converted into others. Instead of memorizing everything, this table helped me clearly understand conversion limitations across Python data types. Key learnings 👇 Type casting creates a new object; the original data remains unchanged complex cannot be converted to int or float dict converts only to key-based collections range converts only to collection types, not numeric or string Not all data types are interchangeable, and knowing limitations avoids errors 📊 The image shows a 3-column overview: Data Type → Function Applied → Non-Convertible Types Understanding what cannot be converted is just as important as knowing what can. 📚 Strengthening fundamentals, one concept at a time. 🚀 Next up: slicing and expression #PythonLearning #Day5 #TypeCasting #PythonBasics #AIMLStudent #LearningJourney #DailyLearning #ProgrammingBasics
To view or add a comment, sign in
-
-
✨ Python Escape Characters ✨ Exploring how special characters work inside strings using escape sequences in Python. These help us control text formatting and display special symbols properly. 📌 Common Escape Characters: ✔️ \' → Single Quote ✔️ \\ → Backslash ✔️ \n → New line ✔️ \r → Carriage Return ✔️ \t → Tab ✔️ \b → Backspace ✔️ \f → Form Feed ✔️ \000 → Octal value ✔️ \xhh → Hex value These are useful when working with text files, user inputs, and formatted outputs. 💻✨ Learning step by step, growing every day 🚀 #Python #EscapeCharacters #LearningPython #ProgrammingBasics #CodingJourney #DeveloperLife #Upskilling #DataAnalytics #TechSkills #Consistency
To view or add a comment, sign in
-
-
Today I learned about core data structures in Python 🐍 Understanding how data is stored and managed is just as important as writing logic. Here are the four basics I studied today: 🔹 List – Mutable, heterogeneous, allows duplicates. 🔹 Tuple – Immutable, heterogeneous, allows duplicates. 🔹 Dictionary – Mutable, stores data as key–value pairs, keys are unique. 🔹 Set – Mutable, heterogeneous, stores only unique elements. Each structure solves a different problem, and choosing the right one can make code more efficient and readable. Slowly building strong foundations in Python, one concept at a time 🚀 #Python #DataScience #LearningInPublic #Programming #100DaysOfCode #CareerSwitch #Day1
To view or add a comment, sign in
-
-
Understanding Strings & Immutability As I continue building my Python fundamentals, I have been learning how strings work and why they are immutable in Python. - Strings are sequences of characters enclosed in single or double quotes both work the same in Python. - Learned how to create multi-line strings, handle quotes inside strings, and check for characters using the in operator. - Explored string length using len() and accessed characters through indexing (including negative indexing). - An important concept: strings are immutable, meaning individual characters cannot be changed once a string is created only reassigned. Understanding string behaviour is essential when cleaning, validating, and analyzing text-based data. #PythonBasics #StringsInPython #Immutability #DataAnalyticsJourney #LearningInPublic #Upskilling
To view or add a comment, sign in
-
Time Complexity in Python Operations In Python, performance issues rarely come from syntax. They come from misunderstanding how common operations scale as data grows. Key complexity considerations: - List access by index: constant time, but insertions and deletions in the middle are linear - Dictionary and set lookups: constant time on average, dependent on hashing - Membership checks: linear for lists, constant time for sets and dictionaries Sorting operations: typically O(n log n), regardless of data structure - Understanding these behaviors helps avoid hidden bottlenecks and supports writing code that scales predictably. Good performance starts with knowing how your code grows. 🚀 #Python #DataStructures #Algorithms #CodeOptimization #Performance
To view or add a comment, sign in
-
Day 2: Understanding Variables in Python 🐍 Today I learned how Python variables work Key takeaways: Variables store and retrieve data Easy assignment with = operator Values can be overwritten anytime Multiple variables = multiple values (one-to-one) Python handles garbage values automatically python name = "Learner" age = 20 age = 21 # overwritten x, y, z = 1, 2, 3 # multiple assignment Variables are like labeled boxes — you store something, retrieve it when needed, and Python keeps things clean! 📚 Building strong fundamentals, one concept at a time. Tomorrow: data types! 🚀 #PythonForBeginners #AIMLStudent #LearnPython #CodingJourney #PythonBasics #TechLearning
To view or add a comment, sign in
-
Learning Python one concept at a time 🐍 After variables & data types, here’s the next big idea 👇 Python Basics — Day 3 🐍 📌 Concept :🖥 Input & Output 👉 Input: We talk to Python (input()) 👉 Output: Python talks to us (print()) This is where programs become interactive, not just static. Sharing beginner-friendly Python basics — with simple examples and practice questions to learn by doing 📘✍️ If you’re learning Python too, let’s connect 🤝 #Python #DataTypes #Learning #Beginners #PythonBasics #Upskilling #TechLearning #CareerGrowth #AI #AILearning #developer #pythondeveloper
To view or add a comment, sign in
-
Day 12/60 🚀 60 Days Python Series 🐍 🔥 Assigning 0 & 1 to variables in Python In Python, numbers also act like booleans: ➡️ 0 → False ➡️ 1 → True This concept is very important for: ✔ conditions ✔ loops ✔ logic building Learn the basics well, and advanced Python becomes easy 💡 📌 Save this post for revision 💬 Comment “python” if you’re following the series ➡️ Follow for daily Python content #60dayspython #pythonseries #learnpython #pythonbasics #codingreels #logicbuilding #pythonforbeginners #programminglife
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development