#Day13 of 365 Days of Code Today I learned about queues and tuples and spent time understanding how they differ and when to use each. Queues follow a first-in, first-out (FIFO) principle - the first item added is the first one removed. They’re useful when order matters, like task scheduling or processing requests in sequence. Tuples, on the other hand, are ordered but immutable. Once created, their values can’t be changed, which makes them useful for storing data that shouldn’t be modified accidentally. Learning these differences made it clearer that choosing the right data structure isn’t just about syntax - it’s about intent, safety, and how data flows through a program. Still learning. Still showing up. On to Day 14 #365DaysOfCode #Python #DataStructures #Queues #Tuples #LearningInPublic #Consistency #TechJourney
Learning Queues and Tuples in Python
More Relevant Posts
-
📘 Today’s Learning Update Today I revised Python basics up to Data Types and practiced General Aptitude – Percentage as part of my GATE preparation. 🔹 Python topics covered: Variables Data Types (int, float, string, list, tuple, set, dictionary) Basic input/output 🔹 GATE General Aptitude: Percentage concepts and practice problems Focused on fundamentals today to build a strong tomorrow 🚀 Consistency over intensity. #GATE2026 #PythonBasics #DataTypes #GeneralAptitude #LearningJourney #StudentLife #Consistency GitHub Practice Code: https://lnkd.in/g6BYmQBu
To view or add a comment, sign in
-
Flagging outliers in time series is tricky. You need to decompose the series, calculate the residuals, choose a threshold, and then check if the results make sense. That's a lot of manual steps. And a lot of room for error. TimeCopilot handles it differently. You pass your data to detect_anomalies() and get: • Prediction intervals built with conformal methods • Anomalies flagged based on the confidence level you choose • Visualization with forecasts and anomalies together No separate tools. No manual calculations. 🚀Full tutorial: https://lnkd.in/ePEjshey #TimeSeries #AnomalyDetection #Python #DataScience
To view or add a comment, sign in
-
-
🚀 Want more “Pythonic” code in 5 minutes? These little tricks are not magic. They are tiny shortcuts that make your code cleaner, faster to read and easier to maintain If you write Python daily, keep this cheat sheet nearby ⏱️ 1: List comprehensions — build lists fast, clean, and Pythonic [...] 2: zip() — pair lists by index, no manual loops zip(names, ages) 🔗 3: Unpacking — swap and split values in one step a, b = b, a 🔁 4: *args and **kwargs — flexible functions that accept any inputs def f(*args, 5: **kwargs) 🧩 enumerate() — loop with index without extra counters enumerate(items) 🧠 #Python #Programming #CodingTips #Developer #CleanCode #LearnPython #DevCommunity
To view or add a comment, sign in
-
-
Today was all about going deeper into Python fundamentals 🐍💡 📌 What I covered today: 🔹 Scope (LEGB Rule) Understood how Python searches for variables and why scope matters for clean and predictable code. 🔹 Closures Learned how inner functions can remember variables from their enclosing scope even after the outer function has finished execution — powerful concept for state management and decorators. 🔹 OOPS – Class & Object Explored why classes are used over only functions: - Classes act as blueprints - Objects are real instances - Better structure, data protection, scalability, and real-world modeling - Also clarified how __init__ works and how each object maintains its own state. 👉 Revisiting fundamentals really changes how you think about writing better, cleaner code. Learning step by step, one concept at a time 🚀 #Python #LearningInPublic #PythonBasics #OOPS #Closures #Scope #Programming #DeveloperJourney
To view or add a comment, sign in
-
Today’s learning was all about Lists and Tuples, and this felt like a big step toward handling real data in Python. I learned that Lists are used when data needs to be: Ordered Changeable Easily updated Lists allow adding, removing, and modifying elements, which makes them perfect for scenarios where data keeps changing. Then came Tuples, which look similar to lists but behave very differently. Tuples are: Ordered Immutable (cannot be changed) More secure for fixed data Understanding when to use a list vs a tuple is more important than just knowing the syntax. Lists give flexibility, while tuples give safety and predictability. This day made me realize that good programming isn’t about writing more code — it’s about choosing the right data structure. Learning slowly, but learning the right way. #Python #Lists #Tuples #DataStructures #LearningJourney #DeveloperMindset
To view or add a comment, sign in
-
-
Headline: Stop writing loops to clean your data. 🛑 One of the most common tasks in Python is handling duplicate entries. While you could write a for-loop with a conditional check, there’s a much faster, more "Pythonic" way to do it: Sets. Sets are unordered collections of unique elements. By casting your list to a set, Python handles the heavy lifting of deduplication instantly. Why use this? ✅ Cleaner, more readable code. ✅ Better performance for large datasets. ✅ Built-in membership testing (O(1) complexity). How are you using Sets in your current workflow? Let’s discuss below! 👇 #PythonProgramming #Pyspiders #CodingTips #SoftwareDevelopment
To view or add a comment, sign in
-
-
🚀 Day 5/50 – LeetCode Challenge Revisiting a core stack-based problem to strengthen logic and edge-case handling. 📌 Problem: Valid Parentheses (Easy) 🧠 Approach: Use a stack to track opening brackets and validate correct closing order ✨ Key Learning: Simple data structures can solve complex-looking problems cleanly Consistency over perfection. #LeetCode #Python #DSA #Consistency #LearningInPublic
To view or add a comment, sign in
-
-
A basic idea that cleared a lot of confusion for me was realizing that Python Dictionaries are like real-world folders: you don’t search for information by its position, but by its unique label (the Key). ⚡ Today, as part of the #15DayChallenge, I dived deep into Day 8: Dictionaries. Unlike lists where you use index numbers, dictionaries allow us to map "Key: Value" pairs. This makes retrieving data incredibly fast and intuitive. I practiced: ✅ Creating and modifying dictionaries ✅ Using methods like .get(), .keys(), and .values() ✅ Handling nested dictionaries for complex data structures Understanding how to efficiently store and access data is a game-changer for writing clean, readable code! NativesPlug @locus.ioe #LOCUS2026 #NativesPlug #LearningChallenge #15DayChallenge #NepalTech #LearnAndWin #PythonProgramming #CodingJourney
To view or add a comment, sign in
-
LeetCode Progress | 217. Contains Duplicate (Python) Today I solved “Contains Duplicate” on LeetCode. Problem: Given an integer array nums, return True if any value appears at least twice, otherwise return False. My approach: I used a dictionary to track numbers I’ve already seen. While iterating through the array: -- If the number is already in the dictionary, I return True -- Otherwise, I store it and continue What I learned: -- Using a dictionary makes duplicate detection efficient with average O(1) lookup time -- This gives an overall time complexity of O(n), which is optimal for this problem -- Choosing the right data structure can reduce complexity and make code cleaner #leetcode #python #dsa #datastructures #algorithms #coding #programming #problemSolving #softwareengineering #computerscience #interviewprep #codinginterview #100daysofcode #pythonprogramming
To view or add a comment, sign in
-
-
📅 Winter Arc | Task 2/30 🎯 Challenge: Python Today’s focus: **Day 2: Variables & Data Types** ✅ What I worked on today: (You can personalize these points) - {{Studied Python variables and data types including integer, float, string, and boolean.}} - {{Practiced creating and using variables with simple examples.}} - {{Learned how Python automatically assigns data types to variables.}} 📚 Key takeaways from today: - {{Gained a clear understanding of Python’s core data types.}} - {{Learned how to store and manipulate different kinds of data using variables.}} This journey with Matrix – Winter Arc is helping me stay consistent, sharpen my skills, and take ownership of my daily progress. Small efforts every day are compounding into real growth. Staying locked in. On to the next task ❄️🔥 @MATRIX JEC #MatrixWinterArc #BuildWithMatrix #WinterArc #30DayChallenge #DailyProgress #MatrixJEC
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