🐍 Python Learning – Day 12 📦 Understanding the Difference Between Lists and Tuples Today I learned about Tuples in Python and how they are different from Lists. Both Lists and Tuples store multiple values, but they behave differently. 📌 Example of a List tools_list = ["Linux", "Docker", "Git"] tools_list.append("Kubernetes") print(tools_list) Output: ['Linux', 'Docker', 'Git', 'Kubernetes'] Lists are mutable, which means we can modify them. 📌 Example of a Tuple tools_tuple = ("Linux", "Docker", "Git") print(tools_tuple) Tuples are immutable, which means their values cannot be changed after creation. 📌 Key Difference • List → Mutable (can be modified) • Tuple → Immutable (cannot be modified) Understanding when to use Lists and Tuples helps write more efficient Python programs. Continuing to strengthen my Python fundamentals step by step 🚀 #Python #Programming #PythonBasics #LearningInPublic
Python Lists vs Tuples: Key Differences
More Relevant Posts
-
🐍 Python Learning – Day 16 📦 Understanding Modules and Imports in Python Today I learned about Modules in Python and how to use them with import. A module is a file that contains reusable Python code (functions, variables, etc.). 📌 Why Modules are Important? • Help reuse code • Keep programs organized • Provide access to built-in functionality 📌 Example: Using a Built-in Module import math print(math.sqrt(25)) Output:-- 5.0 📌 Import Specific Function from math import sqrt print(sqrt(16)) Output:- 4.0 📌 What I learned today: • import is used to access modules • We can import the full module or specific functions • Modules help write clean and reusable code Modules are widely used in Python for building scalable and maintainable applications. Continuing to strengthen my Python fundamentals step by step 🚀 #Python #Programming #PythonBasics #LearningInPublic
To view or add a comment, sign in
-
I teach a lot of Python courses. And I don't use slides. Instead, every course is in its own Git repository and uv project. During each class sessions, I live-code into a Jupyter or Marimo notebook. Setting this all up isn't a lot of work. It used to require a few minutes for each class, and some minimal thought and planning. At some point, I decided to automate process with some Python. (I mean, I'm a programmer, right?) After automating the setup, I realized that there were a bunch of other things I could automate, too. The result? My course-setup package, now available on PyPI. It has gotten a lot of love, attention, and improvement in the last few days, thanks in no small part to Claude Code. If you teach Python, then this might be useful to you. And if so, then please let me know what additional features you might want! Check it out: https://lnkd.in/dZJSJXDK
To view or add a comment, sign in
-
Good Python notes for beginners While going through Python resources, I found this: “Complete Python for Beginners” by Rishabh Mishra It’s simple, well-structured, and covers most of the basics. This can be helpful if you: • Are just starting with Python. • Want quick revision notes. • Prefer structured learning. But one thing I’ve learned: - Reading notes alone is not enough. - You need to practice and build small projects to actually understand Python. Still, this is a good starting point, so sharing it here. (Full credit to the original creator ) 💬 How are you learning Python — notes, videos, or projects? 📌 I share simple Python and backend learnings here. #Python #LearnPython #Programming #Coding #Developers #TechLearning #PythonDeveloper #SoftwareEngineer
To view or add a comment, sign in
-
Most Python beginners don't know this exists — and most seniors actively avoid it. Python allows multiple statements on a single line using a semicolon. x = 5; y = 10; z = x + y; print(z) This executes exactly the same as: x = 5 y = 10 z = x + y print(z) The semicolon simply tells the interpreter: "one statement ended, another begins." It works. It's valid Python. But you almost never see it in professional codebases — because readability always wins. Clean, separated lines are easier to debug, easier to review, and easier for the next person (or future you) to understand. I've been revisiting core Python concepts lately, and it's surprising how many small details get glossed over when you're first learning. The fundamentals always have more depth than they first appear. What's a small Python detail that caught you off guard when you first learned it? Drop it in the comments 👇 #Python #Programming #Coding #SoftwareDevelopment #Learning
To view or add a comment, sign in
-
📘 Day of Learning Python – Functions in Python 🐍 Today I focused on understanding Functions in Python, one of the most important concepts for writing clean, reusable, and organized code. Functions help us break a large program into smaller parts, making code easier to understand, test, and maintain. Instead of writing the same logic again and again, we can define it once and call it whenever needed. In today’s practice, I explored: 🔹 Defining functions using def 🔹 Calling functions with arguments 🔹 Returning values using return 🔹 Difference between parameters and arguments 🔹 Writing simple programs using functions like palindrome check, even/odd check, and factorial What I understood most is that functions improve problem-solving by making programs modular and structured. They are the foundation for writing efficient code in real-world applications. Every small concept learned today adds confidence for tomorrow’s bigger challenges. Consistent practice is helping me strengthen my programming basics step by step. Looking forward to learning more and applying these concepts in advanced programs. 🚀 Codegnan Saketh Kallepu #Python #PythonProgramming #FunctionsInPython #CodingJourney #LearningPython #ProgrammingBasics #CodePractice #TechLearning #PythonDeveloper #StudentLearning #LinkedInLearning- day 15
To view or add a comment, sign in
-
-
Day 10 of my Python learning journey 🐍 Today I spent time practicing more problems on functions to strengthen my understanding and improve my coding skills. Along with that, I learned about modules and packages in Python. Modules help organize code into separate files, and packages allow us to group multiple modules together in a structured way. I also created a custom package and understood the role of the __init__.py file, which helps Python recognize a directory as a package and allows better control over how modules are imported. This helped me understand how larger applications are structured and how to write cleaner and more maintainable code. My work is here https://lnkd.in/gGsjWtee #Python #100DaysOfCode #LearningInPublic #Django #MachineLearning #DSA 🚀
To view or add a comment, sign in
-
-
🐍 Python for Beginners – Complete Notes Starting your journey in Python? These beginner-friendly notes are a perfect place to begin 🚀 💡 What you’ll learn: ✔ Python basics & syntax ✔ Variables, data types & operators ✔ Conditional statements & loops ✔ Functions & modules ✔ Lists, tuples, dictionaries ✔ Problem-solving approaches ✔ Real-world examples for practice 📊 Why these notes are helpful: • Simple & easy-to-understand explanations • Structured for beginners 📖 • Perfect for revision & quick learning • Great for students & aspiring developers 🎯 Whether you’re new to coding or brushing up your basics, this resource will help you build a strong foundation in Python. 📌 Save this post for later 🔄 Share with someone who is starting their coding journey 🚀 Follow DINESH CHALLA for more tech notes & learning resources #Python #Programming #Coding #Developers #TechLearning #BeginnerFriendly #LearningResources #Devops #SRE #Learn
To view or add a comment, sign in
-
🚀 Day 14 – Python Practice Project: CLI Student Record Manager Today I built a simple CLI Student Record Manager using Python to practice the core concepts I have been learning in my Python journey. This small project helped me combine several Python fundamentals to create a command-line application that can manage student records. 🔹 Program features: • Add a new student record • View all student records • Search for a student • Save records to a JSON file • Automatically load records when the program starts 🔹 Concepts I practiced: • Python data types – lists, dictionaries, and strings • Loops and conditional statements • Functions and Object-Oriented Programming (OOP) using classes • Exception handling using try/except • JSON parsing for saving and loading data • Building a CLI (Command Line Interface) application Working on this project helped me understand how multiple Python concepts work together to build a small but functional application. Continuing to strengthen my Python fundamentals by building small practical projects. #DataEngineering #Python #NewCareer #AI #SelfLearning
To view or add a comment, sign in
-
-
Learning Python doesn’t have to be confusing — it just needs the right approach. Most beginners don’t quit because Python is hard. They quit because their learning is scattered. One YouTube video after another… Different tutorials… Saved links everywhere… but nothing completed. The real problem? Lack of structure. That’s where well-organized notes make a huge difference. I recently came across a 90-page beginner-friendly Python guide that covers everything step by step: • Python basics • Variables & data types • If-else and loops • Functions • Lists, tuples, sets, and dictionaries • Modules & popular libraries Everything is explained in a simple and clear way — perfect for beginners. Sometimes, you don’t need more resources. You just need one good resource and the discipline to follow it. Follow Rahul kumar for more tech content 🚀 #Python #Coding #Programming #CSE #TechLearning #Networking
To view or add a comment, sign in
-
📅 Day 15 of my Python Learning Journey 🚀 The moment you understand how loops really work, Python starts feeling powerful. Today I explored a very interesting concept in Python — for-else in loops. While it may look simple, it introduces a smart way to handle search and validation logic inside loops. 💻 Here’s what I practiced today: 🔹 Understanding how for-else works in Python 🔹 Writing logic to check conditions within a list 🔹 Using break to stop the loop when a condition is satisfied 🔹 Printing a message when the condition is not found in the entire loop 🔹 Strengthening my understanding of loop control flow One key realization today: 🧠 The else block in a loop executes only when the loop finishes without hitting break. Concepts like these may seem small, but they are incredibly powerful when writing efficient programs and solving logical problems. Every day I’m realizing that consistency in learning programming builds confidence step by step. 📈 Day 15 complete — continuing the journey of becoming better at Python every day. . . . . . . . . . . . . . . . . . #Python #CodingJourney #100DaysOfCode #Programming #LearningInPublic #ComputerScience #BuildInPublic 🚀💻
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