Most beginners think a variable is a complicated concept. It is not. A variable is just a labelled box. 📦 name = 'Haris' This means: → Create a box → Put a label on it that says 'name' → Put 'Haris' inside the box That is it. age = 20 → a box labelled age holding 20 score = 98.5 → a box labelled score holding 98.5 Python is just organizing boxes. Once I understood this, everything else made sense. I am currently on Week 1 of documenting my Python journey publicly. If you are learning too — follow along. 🧵 What concept confused you most when you started programming? 👇 #Python #Programming #LearnPython #BuildingInPublic #AI #MachineLearning #100DaysOfCode #TechPakistan
Understanding Variables in Python: A Simple Concept
More Relevant Posts
-
📘 Python Learning – Day 3 Highlights 🐍 Today’s class was all about Strings & Conditional Logic — very practical and fun! 🔹 String Methods: Used functions like lower(), upper(), strip(), replace(), find(), count(), and split() 🔹 String Formatting: Learned modern and clean way using f-strings 🔹 Conditional Statements: if, elif, else to make decisions in programs 🔹 Ternary Operator: Short and smart way to write conditions in one line 🔹 Practice Programs: ✔ Grade calculation system ✔ Palindrome checker ✔ Vowel counter 💡 Example: text == text[::-1] → checks palindrome Learning how to think logically with code step by step 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
To view or add a comment, sign in
-
-
Can we actually enjoy studying? With the right approach, absolutely! 💡 I’ve been using a mix of my own notes and Generative AI to create visual summaries of Python basics. I found that using these visual "maps" makes it so much easier to remember terms properly for a long period of time. Whether you are a beginner or just need a quick revision guide, this 1-page summary is a game-changer for staying sharp. Check out my Python Basic "Cheat Sheet" below! 👇 #Python #GenAI #Programming #RevisionTips #CareerGrowth #DataScience #DataAnalytics
To view or add a comment, sign in
-
-
Some things in life are flexible… Some things are meant to stay unchanged. That’s exactly what I learned in today’s Python MahaRevision 🚀 📘 Chapter 4: Lists & Tuples Python has two ways to store collections—but the mindset behind them is what really matters 👇 🔹 Lists → can change, grow, evolve (just like plans) 🔹 Tuples → fixed, stable, unchangeable (like constants you trust) Also explored: • Indexing & slicing • List methods • Tuple basics & usage 🧠 Practice Set Completed! Worked on: • Updating and manipulating lists • Using tuples in different scenarios • Finding max/min values • Handling mixed data collections 💡 Biggest takeaway: Good programmers don’t just store data—they choose the right structure for the situation. Learning in public. One step at a time 🚀 #Python #CodingJourney #LearningInPublic #Programming #Tech #100DaysOfCode
To view or add a comment, sign in
-
It’s funny how even code needs to “decide” what to do next. Today’s Python MahaRevision was all about making decisions in code 👇 📘 Chapter 6: Conditional Expressions Finally getting into the part where programs start to feel a bit “smart”: • if, elif, else • using logic to control flow • combining conditions with and/or/not 🧠 Did the practice set too: Tried problems like checking numbers, comparing values, simple decision-making stuff… nothing too crazy, but really made me think. Honestly, this chapter felt different. It’s not just about syntax anymore—it’s about how you think. Taking it one chapter at a time 🚀 #Python #LearningInPublic #CodingJourney #Programming
To view or add a comment, sign in
-
Today I focused on understanding one of the most important concepts in Python — Loops 🐍 I learned how loops help in repeating tasks efficiently and make code more powerful. 🔹 Topics Covered: ✔️ for loop and while loop ✔️ Using range() (start, stop, step) ✔️ Iterating over strings and lists ✔️ Nested loops ✔️ Control statements: break, continue, pass 📚 Practice I Did: Factorial without built-in functions Reverse a number using while loop Pattern printing Logical problems using loops 💡 My Learning: Loops are not just syntax — they help in building logic and problem-solving skills, which are essential in programming. Small steps every day → Strong foundation 🚀 👉 Which one do you prefer — for loop or while loop? Let’s connect if you're also learning Python 🤝 #Python #PythonProgramming #CodingPractice #LearnToCode #DeveloperJourney #100DaysOfCode #ComputerScience #ProgrammingBasics #LogicBuilding
To view or add a comment, sign in
-
Today’s Class: Mastering Lists in Python In today’s session, I explored important concepts of Python lists that are essential for efficient programming 💡 🔹 id() Function Returns the unique memory address of an object 👉 Useful to check object identity 🔹 Aliasing Two variables refer to the same list (same memory) 👉 Any change reflects in both 🔹 Cloning Creates a separate copy (different memory) 👉 Changes do NOT affect the original list 💡 Ways to Clone a List ✔️ Using copy() ✔️ Using slicing [:] ✔️ Using concatenation + ✔️ Using multiplication * ✔️ Using list comprehension ⚡ Additional Concepts 🔸 Concatenation (+) → Combine lists 🔸 Multiplication (*) → Repeat elements 🔸 List Comprehension → Efficient & readable way to create lists Global Quest Technologies #Python #DataStructures #Programming #LearnPython #Coding #PythonDeveloper #TechLearning
To view or add a comment, sign in
-
-
🐍 Day 9 of My 30-Day Python Learning Challenge Today I learned about List Comprehension — one of the most powerful and Pythonic features. 📌 What is List Comprehension? It provides a shorter and cleaner way to create lists. 📌 Traditional Way squares = [] for i in range(5): squares.append(i*i) 📌 Pythonic Way (List Comprehension) squares = [i*i for i in range(5)] print(squares) Output: [0, 1, 4, 9, 16] 💡 Why use it? • Less code • More readable • Faster execution 📊 Quick Question What will be the output? nums = [1,2,3,4] result = [x*2 for x in nums if x%2==0] print(result) Answer tomorrow 👇 #Python #CodingJourney #Programming #LearningInPublic #SoftwareDeveloper
To view or add a comment, sign in
-
👋 Welcome back! 📅 Python Learning – Day 65 Today we explore another non-comparison sorting technique: Radix Sort. Radix sort works by sorting numbers digit by digit, starting from the least significant digit to the most significant. Instead of comparing values directly, it groups and orders them step by step. 📘 In this lesson, I’ve explained: 🔢 How radix sort processes numbers digit by digit 🧩 How it uses counting logic internally ⚠️ Common beginner mistakes when handling digits and place values Radix sort can be very efficient for large datasets with numbers. Understanding it helps you see that sorting is not always about comparisons. 🔗 Tutorial link is in the comments. 💬 If you're following this learning journey and want to stay connected with more tutorials and discussions, you can join our LinkedIn community here: 👉👉CodePractice Group: (https://lnkd.in/g3xbN4GJ) ⏭️ Tomorrow: Python Merge Sort #RadixSort #SortingAlgorithms #LearnPythonDSA #AlgorithmConcepts #CodingPractice #PythonProgramming #TechStudents #DeveloperJourney #python #learnpython #codepractice #softwaredevelopment #computerscience #pythondevelopment #pythonlearning
To view or add a comment, sign in
-
-
⚠️ Strings look simple… until they aren’t. Back with my Python MahaRevision — and today’s focus was on: 📘 Chapter 3: Strings From basic text handling to powerful operations, this chapter showed me that strings are way more than just “text” in Python 👇 🔹 String slicing & indexing 🔹 String functions & methods 🔹 Escape sequences 🔹 Immutability of strings 🧠 Practice Set Completed! Worked on problems like: • Manipulating and slicing strings • Finding and replacing words • Formatting outputs • Real-world text-based logic 💡 Biggest takeaway: Small concepts like slicing and methods can solve surprisingly complex problems when used right. Learning in public. Staying consistent. Improving daily 🚀 #Python #CodingJourney #LearningInPublic #Programming #Tech #100DaysOfCode
To view or add a comment, sign in
-
🚀 Day 2 of #100DaysOfCode Today I learned how to check whether a number is a Palindrome using Python 🐍 🔍 Problem: A number is called a palindrome if it reads the same forward and backward (like 121, 1331). 💡 Approach: Reverse the number using a loop Compare it with the original number 🐍 Code: num = int(input("Enter a number: ")) original = num reverse = 0 while num > 0: digit = num % 10 reverse = reverse * 10 + digit num = num // 10 if original == reverse: print("Palindrome Number") else: print("Not a Palindrome Number") 📌 Key Learning: Learned how loops and basic logic can solve interesting problems. 💬 Next: Armstrong Number 🔥 #Python #Coding #100DaysOfCode #Learning #CSE
To view or add a comment, sign in
-
Explore related topics
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