🐍 New Blog Post: Python — Everything is an Object One of the most important things I learned at Holberton School is that Python variables are NOT boxes. They are references — labels that point to objects living in memory. This single insight explains so many confusing Python behaviors: ✅ Why modifying a list inside a function affects the original ✅ Why a = 89; b = 89; a is b returns True ✅ Why (1) is not a tuple but (1,) is ✅ Why += and = a + [...] behave differently In my latest blog post, I cover: → id() and type() — inspecting objects in memory → Mutable vs Immutable types → How CPython caches 262 integers at startup → Pass by object reference in functions → __slots__, string interning & more 🔗 Read the full post here: [https://lnkd.in/dhTF97zh] This is part of my journey through the Higher Level Programming curriculum at Holberton School. Every concept covered with real code examples and output. #Python #Programming #SoftwareEngineering #HolbertonSchool #100DaysOfCode #LearnToCode #CPython
Python Variables Are References Not Boxes
More Relevant Posts
-
🎥 Python Input Statement Explained | Beginner Friendly Want to make your Python programs interactive? 🤔 In this video, I explain the input() function in a simple way with examples! 💡 What you’ll learn: ✔️ What is input() ✔️ How to take user input ✔️ Type conversion (int, float) ✔️ Real-time examples 👩💻 Example: name = input("Enter your name: ") print("Hello", name) 👉 Perfect for beginners starting Python and Data Science journey! https://lnkd.in/edx-D3JM 👍 Like | 🔁 Share | 🔔 Subscribe for more simple coding videos #Python #Coding #LearnPython #Beginners #Programming #DataScience
To view or add a comment, sign in
-
🚀 Day 6 of My Python Learning Journey Today’s focus was on Functions in Python — one of the most important concepts for writing clean and reusable code ✨ 🧠 What I learned today: ✔️ How to define functions using "def" ✔️ Difference between built-in and user-defined functions ✔️ Parameters and return values ✔️ Lambda (anonymous) functions ✔️ Basics of recursion 📒 I also created handwritten notes to better understand and remember the concepts — writing things down really helps me learn faster! 💡 Key takeaway: Functions make code more organized, reusable, and easy to debug. Here’s a simple example from today’s practice: def add(a, b): return a + b print(add(2, 3)) 📌 Sharing my handwritten notes below 👇 (helps in quick revision!) #Python #CodingJourney #LearningByDoing #StudentLife #100DaysOfCode #Programming
To view or add a comment, sign in
-
-
Learning the correct scope of variables can make or break your code. With this in-depth guide, you'll discover how Python handles variables in different scopes and learn how to use them to your advantage. Read the full article 👉 https://lnkd.in/dG8fjV2M #Python #Programming #VariableScoping #PythonBasics #ITInterns #TechLab Code. Learn. Build. — TechLab by Neeraj
To view or add a comment, sign in
-
📚 New article just published on SYUTHD! 🔖 Python 3.14 Sub-interpreters: The Definitive Guide to True Parallelism Without the GIL 🏷️ Category: Python Programming 📖 Full article → https://lnkd.in/dJjcff3y 👉 Follow our page for more tech tutorials: https://lnkd.in/gsJDptPM 💬 Telegram: https://t.me/nisethtechno 👍 Facebook: https://lnkd.in/gsKv3Dyn #PythonProgramming #Tech #Tutorial #Programming #TechBlog #2026
To view or add a comment, sign in
-
Today I learned about Functions in Python 🐍 Functions are blocks of code that help us reuse logic instead of writing the same code again and again. Here’s what I understood: • Defining Functions – Using def to create a function • Parameters & Arguments – How data is passed into functions • Return Statement – How a function sends data back after processing • Code Reusability – Write once, use many times • Better Organization – Makes code cleaner and easier to manage Learning functions made me realize how important structured coding is for writing efficient programs. Step by step improving every day 🚀 #Python #Functions #CodingJourney #Programming #LearningInPublic #TechStudent
To view or add a comment, sign in
-
📘 Day of Python Learning – Understanding Arguments in Functions Today I practiced arguments in Python, which help pass values into functions and make programs more flexible and reusable. ✅ Learned different types of arguments: • Positional Arguments • Keyword Arguments • Default Arguments • Variable-Length Arguments This concept made me understand how functions can handle inputs efficiently and reduce repetitive code. Step by step, Python is becoming more interesting as each topic connects to real programming logic. Small concepts build strong coding foundations 🚀 Consistent practice is helping me improve my problem-solving skills every day. #Python #PythonLearning #FunctionsInPython #Arguments #CodingJourney #Programming #LearningEveryday #TechSkills #LinkedInLearning day 16
To view or add a comment, sign in
-
-
Day 8/30 – Python Coding Challenge 🐍 📌 LeetCode Problem 11: Container With Most Water 💡 Problem: Find two lines that form a container holding the maximum water. 🧠 What I learned: • Two-pointer technique • Optimizing brute force (O(n²) → O(n)) • Smart decision making using minimum height 💻 Example: Input: [1,8,6,2,5,4,8,3,7] Output: 49 🚀 Insight: By moving the pointer with smaller height, we can efficiently maximize the area. Learning to think smarter, not harder 💪 #30DaysOfCode #Python #LeetCode #TwoPointers #CodingChallenge #ProblemSolving
To view or add a comment, sign in
-
-
🚀 Just published my blog on "Mastering Python Strings"! While learning Python, I realized how important strings are in real-world applications like data cleaning, validation, and text processing. In this blog, I covered: ✅ String operations (concatenation, slicing, indexing) ✅ Important methods ✅ Real-world examples ✅ Common beginner mistakes 💡 Key Learning: Mastering strings makes handling real-world data much easier. 🔗 Read here: https://lnkd.in/dnNGSJXf Thanks to Innomatics Research Labs for this learning opportunity 🙌 #Python #Programming #DataScience #Coding #Learning #Innomatics
To view or add a comment, sign in
-
🐍 I built a Snake Game in Python — in just 150 lines of code! When I first started learning Python, I never thought I could build an actual game. Today, it's possible! 🎮 Here's what I learned while building it: ✅ How to use the pygame library ✅ How a game loop works ✅ Handling keyboard input ✅ Collision detection logic ✅ Building a score system 💡 If you're learning Python — building games is honestly the BEST way to practice and level up fast! I compiled the full step-by-step tutorial into a PDF. Comment "SNAKE" below and I'll share it with you FREE! 🎁 What would you like to build with Python? Drop it below 👇 #Python #pygame #CodingTutorial #LearnPython #GameDev #Programming #100DaysOfCode #PythonDeveloper
To view or add a comment, sign in
-
💻 Exploring Recursion in Python 🚀 Today I worked on implementing two classic recursive problems — Factorial and Fibonacci — in Python. At first, small mistakes like typos and function naming issues slowed me down, but debugging them helped me understand recursion much better. 🔁 Key Learnings: • Importance of base conditions in recursion • How recursive calls build up the final result • Debugging is where real learning happens Seeing the Fibonacci output finally work (233 for n=13) was a satisfying moment! 🙌 Step by step, getting closer to mastering problem-solving and logic building. #Python #CodingJourney #Recursion #LearningByDoing #Debugging #100DaysOfCode #DeveloperLife #Programming #TechSkills
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