🚀 Day 13 – Second Largest Number in a List (Python) 💻 Today’s task: Find the second largest number in a list. 🔍 Explored how to handle: • Duplicate values 🔁 • Edge cases (small lists, same elements) ⚠️ • Efficient comparison logic ⚙️ 📌 This exercise helped me improve: • Logical thinking 🧠 • List manipulation skills 📋 • Writing optimized solutions ✨ ✨ Simple problem, but important for building a strong foundation in problem-solving. 📈 Learning something new every day with consistency. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips
Second Largest Number in a List Python Challenge
More Relevant Posts
-
🚀 Day 23 – Second Non-Repeating Character (Python) 💻 Today’s task: Find the second non-repeating character in a string. 🔍 The goal is to identify the second character that appears only once in the given string. 📌 This exercise helped me understand: • Character frequency counting 🔢 • String traversal 🔁 • Handling edge cases efficiently ⚠️ ✨ A slightly advanced twist on a common problem that improves logical thinking. 📈 Learning consistently and strengthening problem-solving skills every day. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips #DataStructures
To view or add a comment, sign in
-
-
🚀 Day 24 – Check if a List is Sorted (Python) 💻 Today’s task: Implement a function to check whether a list is sorted or not. 🔍 The goal is to verify if elements are in ascending (or descending) order. 📌 This exercise helped me understand: • List traversal 🔁 • Comparison logic ⚙️ • Writing clean and efficient functions ✨ ✨ A simple yet important problem for building strong programming fundamentals. 📈 Staying consistent and improving step by step. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips #DataStructures
To view or add a comment, sign in
-
-
🚀 Day 21 – Merge Two Sorted Lists (Python) 💻 Today’s task: Write a program to merge two sorted lists into a single sorted list. 🔍 The goal is to combine both lists while maintaining the sorted order. 📌 This exercise helped me understand: • Two-pointer technique 🔁 • Efficient list traversal ⚙️ • Writing optimized and clean logic ✨ ✨ A classic problem that builds a strong foundation for algorithms like merge sort. 📈 Learning step by step and improving consistency every day. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips #DataStructures
To view or add a comment, sign in
-
-
🚀 Day 18 – Flatten a Nested List (Python) 💻 Today’s task: Write a function to flatten a nested list. 🔍 A nested list contains elements that can be lists within lists. The goal is to convert it into a single, flat list. 📌 This exercise helped me understand: • Recursion concepts 🔁 • List traversal techniques 🧩 • Writing flexible and reusable functions ⚙️ ✨ A great problem to improve logical thinking and handle complex data structures. 📈 Learning step by step and staying consistent. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips #DataStructures
To view or add a comment, sign in
-
🚀 Day 14 – Sort a List Without Using sort() (Python) 💻 Today’s task: Sort a list without using the built-in sort() function. 🔍 Explored alternative approaches: • Using lambda functions 🧠 • Using slicing techniques 🔪 📌 This exercise helped me understand: • Custom sorting logic ⚙️ • How Python handles data manipulation internally 🔍 • Writing optimized and flexible code ✨ ✨ Challenging myself to go beyond built-in functions and strengthen problem-solving skills. 📈 Consistency is key — learning something new every day. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips
To view or add a comment, sign in
-
-
Most beginners think variables are just “boxes” 📦 That’s wrong. A variable is just a label pointing to data in memory. 👉 Example (Python): x = 10 Now x is not the value It just points to 10 👉 Change it: x = 20 Now it points somewhere else This is why: - Bugs happen - Values “change” unexpectedly If you don’t understand this, you’re just memorizing syntax—not coding. #coding #python #javaprogramming #learncoding #beginners #programming #developer #softwaredevelopment #tech #codinglife
To view or add a comment, sign in
-
-
🧠 Python Concept: pass statement Do nothing… but intentionally 😎 ❌ Problem if True: # nothing here 👉 Error ❌ (Python expects something inside) ✅ Pythonic Way if True: pass 🧒 Simple Explanation Think of pass like a placeholder 🧩 ➡️ “I’ll add code later” ➡️ Keeps program running ➡️ Does nothing 💡 Why This Matters ✔ Avoid syntax errors ✔ Useful in empty blocks ✔ Helps in planning code ✔ Common in real projects ⚡ Bonus Examples 👉 In functions: def future_function(): pass 👉 In loops: for i in range(5): pass 🐍 Sometimes doing nothing is important 🐍 Write code step by step #Python #PythonTips #CleanCode #LearnPython #PassStatement #Programming #DeveloperLife #100DaysOfCode
To view or add a comment, sign in
-
-
𝗗𝗮𝘆 𝟵/𝟯𝟬 Instead of forcing my old coding habits into Python, I’m leaning into how the language handles data natively. Why write four lines of code when you can write one? 1. 𝗧𝗵𝗲 𝗦𝘁𝗮𝗻𝗱𝗮𝗿𝗱 𝗪𝗮𝘆 (Looping & Appending): nums = [1, 2, 3, 4] squared = [] for n in nums: squared.append(n * n) 2. 𝗧𝗵𝗲 𝗠𝗼𝗱𝗲𝗿𝗻 Approach 🚀: squared = [n * n for n in nums] 👉🏻It’s cleaner, faster, and much more intuitive. These are the small details that make the Python journey so satisfying🤌🏻 At what point do you find List Comprehensions become too complex? Do you stick to them for simple one-liners, or use them for nested logic too? #Python #30daysofcode #CodingJourney #Day9 #SoftwareDevelopment
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
-
-
At this point, Python is starting to feel less like a language… and more like a toolkit. Today’s Python MahaRevision 🧠 Chapter 13: Advanced Python (Part 2) This chapter introduced some really powerful and practical concepts: → Virtual environments → pip freeze (managing dependencies) → Lambda functions → bin() method → format() function → map, filter, reduce It’s interesting how these tools make code shorter, cleaner, and more efficient—once you understand how to use them properly. Practice set done: Worked on applying lambda functions, transforming data using map/filter, experimenting with reduce, and managing environments and dependencies. Some concepts felt a bit abstract at first (especially map/filter/reduce)… but with practice, they started making more sense. Biggest takeaway: Better tools don’t just make coding easier—they change how you think about solving problems. Still exploring, still improving. #Python #LearningInPublic #CodingJourney #Programming #AdvancedPython
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