💡 Python Fun Fact: You think you copied a list… but nope. 🥱 Any change you make through box (like adding "Marker") also shows up in items because they’re literally the same object. This is called shared reference in Python. #PythonTips #Python
Python Shared Reference Explained
More Relevant Posts
-
I Replaced a Python Function With a Lambda. Here's What Went Wrong. In Python, there’s often more than one way to write the same piece of logic. That flexibility is powerful, but it also introduces a subtle... https://lnkd.in/gd653PJb
To view or add a comment, sign in
-
Everything you can do in the visual workflow editor, you can also do in Python. Here's what adding the Extract node to your workflow looks like. Full reference in the docs: https://lnkd.in/eSFimr-9 #GenAI #Python #DocumentProcessing
To view or add a comment, sign in
-
-
Python Tip of the Day 🐍 Understanding file modes is essential before working with files in Python. The difference between r and r+ may look small, but it changes how your program behaves. r → Read-only (file must exist) r+ → Read & write (no file creation) Day 42 of building Python basics #Python #FileHandling #LearnPython #ProgrammingBasics #PythonTips
To view or add a comment, sign in
-
-
I expected Python to feel like magic immediately. It didn't. What actually happened: - I spent 40 minutes on indentation errors - I wrote my first function and it felt oddly satisfying - I realized how readable Python is compared to what I imagined If you're also in the early stages — this is your sign to keep going. The confusion is part of it. What was YOUR first Python/AI moment? #Python #LearningInPublic #AIJourney #100DaysOfCode #PakistanTech
To view or add a comment, sign in
-
Python Clarity Series – Episode 22 Topic: == None vs is None 📌 Checking None the wrong way: if x == None: Works… but not recommended. 👉 Correct way: if x is None: 💡 Why? None is a singleton object 👉 is checks identity (correct here) 👉 == checks value 💡 Rule: Use is None, not == None This is considered best practice in Python. Small detail → Strong coding habit #PythonBestPractices #CleanCode #DeveloperThinking #python #clarityseries
To view or add a comment, sign in
-
-
This is part 2 of the video that further discusses about features and syntax of library and builtin functions used in Python. Full details of open, sort, sorted, iter, sort, copy, deepcopy, datetime etc. functions have been explained.
Library and builtin functions in Python in Hindi (Part 2): open, sort, copy, datetime etc. functions
https://www.youtube.com/
To view or add a comment, sign in
-
Constructor in Python __init__ ( )is the constructor method in python It has no return type It is used to initialize object variables when the object is created self refers to the current instance being initialized So, Dog("Buddy") Creates new object and automatically calls __init__ ( ) to assign "Buddy" to self.name
To view or add a comment, sign in
-
-
Day 5/100 – Python Today I worked on swapping two numbers in Python. At first, it looked like a simple problem, but it actually helped me understand an important concept — how to move data without losing it. I explored two approaches: 🔹 Using a third variable (temporary storage) 🔹 Swapping directly using Python’s tuple unpacking What I learned today: ✔ Importance of preserving data before overwriting ✔ How execution order affects the result ✔ Cleaner and more efficient ways to write code in Python ✔ Understanding how Python handles multiple assignments internally #100DaysOfCode #Python #DSA #ProblemSolving #LearningInPublic
To view or add a comment, sign in
-
-
Day 5/30 – Python 🐍 Today I explored dictionaries in Python learned how to store data using key-value pairs and access/update values efficiently. Tried a few small programs and understood how useful dictionaries are for real-world data handling. Step by step progress 🚀 #Day5 #Python #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
‼️FREE SERIES ALERT Part 3: Linear Regression From Scratch in Python (Step-by-Step Implementation) https://lnkd.in/gwNHF3dU This series is designed for beginners in AI/ML who want to move beyond "black-box" libraries and truly understand the software architecture expected in tech interviews. If you're preparing for ML roles and want to truly understand how algorithms work under the hood, this series is for you.
Part 3: Linear Regression From Scratch in Python (Step-by-Step Implementation)
https://www.youtube.com/
To view or add a comment, sign in
More from this author
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