🚀 Day 10 – Python Lists Continuing my Python learning journey, today I explored some important concepts related to Python Lists. I learned how id() helps in checking the memory location (identity) of a list, and how aliasing works when two variables refer to the same list. This made me realize how changes in one list can affect another. I also understood cloning, where using methods like copy() or slicing ([:]) creates a completely new list with a different identity. This is very useful to avoid unintended changes in programs. Additionally, I practiced list operations like sorting using sort() and sort(reverse=True), and explored useful methods such as append(), extend(), remove(), pop(), clear(), and reverse(). 📌 Key Learning: Being careful with aliasing is very important to prevent unexpected behavior in lists. 🙏 A special thanks to Global Quest Technologies for providing this valuable learning opportunity and continuous support throughout the training. Thanks to our CEO G.R NARENDRA REDDY Every day is bringing me closer to mastering Python step by step! 💻✨ #Python #PythonLists #CodingJourney #LearningPython #DeveloperLife #100DaysOfCode #TechSkills #Programming #GlobalQuestTechnologies
Python Lists: Id(), Aliasing, Cloning & Operations
More Relevant Posts
-
🚀 Python Basics to Advanced Learning Series – Day 11 Today’s session was about understanding Tuples in Python. It helped me learn how to work with another important data structure. What I learned today: • Introduction to Tuples and how they work in Python • How to create tuples using different methods • Tuples can store heterogeneous data (different data types) • Tuples are immutable – once created, we cannot modify them • Understanding tuple packing and unpacking • Accessing tuple elements using indexing and slicing • Learning important tuple built-in methods like "count()" and "index()" • Practiced examples to understand tuple behavior clearly This session helped me understand the difference between lists and tuples, and when to use tuples in programming. I’m learning step by step as part of my Python Basics to Advanced Learning Journey at Global Quest Technologies, and I’m gaining more clarity every day. Excited to continue learning and exploring more concepts 🚀 G.R NARENDRA REDDY #Python #PythonProgramming #LearningJourney #Coding #Tuples #DataStructures #ProblemSolving #SoftwareDevelopment #TechLearning #Developers #GlobalQuestTechnologies
To view or add a comment, sign in
-
-
📚 Continuing my Python learning journey Today I explored more advanced list operations in Python, focusing on how to efficiently modify and work with lists. 🔑 Key concepts I learned and practiced: • Adding items – using append() and extend() • Removing items – using remove(), pop(), del, and clear() • Looping through lists – iterating over elements efficiently • List comprehension – writing concise and readable list transformations • Sorting lists – organizing data using sort() • Copying lists – creating copies without affecting the original list • Joining lists – combining multiple lists into one It’s interesting to see how these operations make lists extremely flexible and powerful for handling data. Step by step, I’m strengthening my Python fundamentals and problem-solving skills. 🚀 #Python #Programming #LearningJourney #ComputerScience #Coding
To view or add a comment, sign in
-
🚀 Day 18 of My Python Learning Journey Today, I explored deeper concepts in Python focusing on Functions, Variable Scope, and Advanced Arguments. This session helped me understand how Python handles data inside functions and how to write more flexible and efficient code. 🔹 Function Parameters: ✅ Difference between Actual Parameters & Formal Parameters ✅ Using Default Arguments and their syntax 🔹 Variable Length Arguments: 🔸 Non-keyworded arguments → *args 🔸 Keyworded arguments → **kwargs 🔸 Understanding how they work and when to use them 🔹 Functions, Modules & Libraries: ✔️ Function → reusable block of code ✔️ Module → collection of functions ✔️ Library → collection of modules 🔹 Variable Scope in Python: ✅ Local Variables vs Global Variables ✅ Accessing global variables inside functions ✅ Modifying global variables using global keyword ✅ Accessing using globals()['var'] 🔹 Lambda Functions: 💡 Learned how to use anonymous functions for writing concise logic 💡 These concepts are essential for writing clean, scalable, and efficient Python code. Grateful to Global Quest Technologies for continuous support and guidance 🙏 Excited to keep pushing forward in this learning journey! 🔥 Master the Code Today. Shape the Future Tomorrow. G.R NARENDRA REDDY #Python #PythonLearning #LearningJourney #Day18 #Functions #VariableScope #Coding #Programming #Developers #TechSkills #100DaysOfCode #GlobalQuestTechnologies #PythonDeveloper #CodeNewbie
To view or add a comment, sign in
-
-
🚀 Day 12 of my Python Full Stack Development Journey In today’s session, I explored the "Tuple Data Structure in Python", gaining a deeper understanding of its characteristics and practical usage. 🔹 Understanding Tuples Tuples are similar to lists but are immutable.. Additionally, tuple comprehension is not supported. 🔹 Tuple Creation & Operations • Created tuples using different approaches with examples • Learned tuple packing and unpacking concepts • Used the tuple() function to create tuples: ->By converting a list into a tuple ->By using the range() function 🔹 Accessing Tuple Elements • Accessed elements using indexing • Extracted subsets using slicing techniques 🔹 Built-in Functions on Tuples • len() – Determines the number of elements • count() – Counts occurrences of a value • index() – Retrieves the index of an element • sorted() – Returns a sorted version (as a list) • min() and max() – Identify smallest and largest elements 💡 This session strengthened my understanding of when to use tuples over lists, especially in scenarios requiring data integrity and immutability. 🙏 Grateful to G.R NARENDRA REDDY Sir and Global Quest Technologies for their continuous guidance and support. #Python #FullStackDevelopment #LearningJourney #Programming #DataStructures #Coding
To view or add a comment, sign in
-
-
Day 25 of my python learning journey Today’s learning: Understanding how Python classes actually work under the hood. ☞The `*init*` constructor is the first method that runs automatically when we create an object ☞Its main job is to initialize data. We don’t call it — Python calls it for us. ☞ Normal methods are different: we define them for specific tasks and call them manually whenever needed. One runs on its own, the other waits for us. ☞Also learned about the 3 types of variables in Python classes: 1. Instance variable → `self.name` — Each object gets its own separate copy. Change it for one object, others won’t be affected. 2. Static/Class variable → Defined inside class but outside methods. Only one copy exists and all objects share it. 3. Local variable → Created inside a method, used for temporary work, and deleted once the method ends. These small OOP concepts are the building blocks for writing clean, real-world code. Special thanks to the CEO G.R NARENDRA REDDY Sir for constant guidance and motivation. #Python #OOP #LearningJourney #Programming #Coding #StudentLife #100DaysOfCode
To view or add a comment, sign in
-
-
📚 Continuing my Python learning journey Today I focused on understanding lists in Python and explored their features, functions, and practical usage. Key concepts I learned and practiced: ----------------------------------------------------------- ● List basics & features – understanding the list data type and its flexibility ● Built-in functions – using len() and the list() constructor ● Creating lists – from strings, tuples, range(), and creating empty lists ● Type validation – using type() to check data types ●Accessing elements – using index, negative indexing, and slicing (range of indexes) ● Checking existence – verifying if an item exists in a list ● Modifying lists – changing single and multiple items ● Replacing items – updating with more or fewer elements ● Inserting items – adding elements without replacing existing ones using insert() Understanding how flexible lists are makes it clear why they are one of the most widely used data structures in Python. Step by step, I’m building a stronger foundation in Python programming and problem-solving. 🚀 #Python #Programming #LearningJourney #ComputerScience #Coding
To view or add a comment, sign in
-
🚀 Python Basics to Advanced Learning Series – Day 8 I’m continuing my Python learning journey at Global Quest Technologies, and today’s session helped me go deeper into how lists work internally. What I learned today: • Revised and practiced all built-in functions used with lists • Understood the id() function and how it shows the memory location of an object • Learned about aliasing in lists (when two variables refer to the same list) • Understood how changes in one variable affect the other due to shared reference • Learned cloning of lists to create a separate copy • Two ways to clone a list: Using slice operator ([:]) Using copy() method This session helped me clearly understand the difference between reference (aliasing) and independent copies (cloning). It also improved my understanding of how Python manages data in memory. Practicing these concepts gave me more clarity on writing efficient and bug-free code. I’m learning step by step at Global Quest Technologies, and every day I’m gaining better understanding and confidence in Python. Excited to continue this journey 🚀 #Python #PythonProgramming #LearningJourney #Coding #DataStructures #Lists #ProblemSolving #SoftwareDevelopment #TechLearning #Developers #GlobalQuestTechnologies #GQT
To view or add a comment, sign in
-
-
While practicing conditional statements in Python, I realized that many of us tend to make some common mistakes that can affect the logic and output of our programs. One of the most frequent errors is improper use of indentation, which is crucial in Python and can completely change how conditions are executed. Another mistake is confusing assignment (=) with comparison (==), leading to unexpected results. I also noticed that sometimes we write overlapping or redundant conditions, making the code unnecessarily complex instead of simple and readable. Ignoring edge cases and not testing all possible scenarios is another common issue that can cause logical errors. Additionally, improper use of logical operators like "and" and "or" can lead to conditions behaving differently than expected. Through consistent practice, I’m learning to write cleaner and more efficient conditional statements by focusing on clarity, proper structure, and thorough testing. Every small mistake is a step toward becoming better at problem-solving and coding! 💻✨ #day18 #30daysofcodingchallenge #Nxtwave #CCBP #python
To view or add a comment, sign in
-
-
Python Learning Journey – Day 7 🚀 Today’s focus was on working with lists and improving problem-solving using Python. I practised different list operations and real-world scenarios to better understand how data can be handled efficiently. Here’s what I worked on: • Reversing a list • Finding common elements between two lists • Extracting unique elements • Removing duplicates while preserving order • List concatenation and repetition • Removing elements based on index conditions • Inserting elements into a list • List comprehensions (squares, even numbers, word lengths) This session helped me get more comfortable with list manipulation and writing cleaner, more efficient Python code using comprehensions. Step by step, improving logic and coding confidence. Big thanks to VASU KUMAR PALANI and PythonLife for the continuous guidance and support. #Python #CodingJourney #LearnInPublic #PythonLists #Programming #100DaysOfCode #Consistency #TechSkills
To view or add a comment, sign in
-
-
🚀 Python Trick That Confuses 90% of Beginners! What will be the output of this code? 👇 name = "abdalrahman" print(name.replace("a", "k", 2)) 🤔 Most people think all "a" will be replaced… but that’s NOT true! ✅ In Python, replace(old, new, count) only replaces the first count occurrences. 🔥 So here, only the first 2 "a" are replaced. 👉 Final Output: kbdklrahman 💡 Lesson: Always read function parameters carefully — small details = big difference. 💬 Did you get it right? Comment your answer before checking! 🔁 Follow for more Python & TCS NQT tricks #Python #Coding #Programming #TCSNQT #TechLearning #Developers #CodeNewbie
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