My Python Journey: Lists + Loops Today, I focused on building a strong foundation in Python with lists and loops. I practiced 10 essential problems, including: 🔹Printing all elements of a list 🔹Accessing elements at even indices 🔹Filtering even numbers 🔹Finding numbers greater than a threshold 🔹Calculating the sum of all elements (without sum()) 🔹Counting total elements (without len()) 🔹Counting numbers greater than 5 🔹Finding the smallest number (without min()) 🔹Printing a list in reverse (using loops) 🔹Creating a new list with squares of numbers 💡 Key takeaways: Loops are powerful for iteration and data manipulation Conditional checks inside loops make Python very flexible Practicing manually (without built-ins) strengthens problem-solving skills. Here’s a glimpse of my list of numbers I practiced on: nums = [14, 13, 27, 34, 20, 16, 23, 82, 49, 83] Feeling confident and ready for Day 2 challenges! 🔥 #Python #DataAnalytics #CodingJourney #100DaysOfCode #LearningByDoing #ProblemSolving
Python Lists and Loops Practice
More Relevant Posts
-
🚀 Today I Learned: Python Lists Continuing my Python journey, today I explored one of the most important concepts — Lists. 🔹 What I learned: - Creating lists to store multiple values - Accessing items using index - Adding & removing elements (append, insert, remove, pop) - Updating list values - Using loops to iterate through a list 🔹 Small practice: I created a list of numbers and calculated the average using Python. 💡 Lists are very useful in real-world projects for handling data efficiently. I’m excited to keep learning and building more with Python every day! #Python #LearningJourney #Coding #Programming #Beginners #100DaysOfCode
To view or add a comment, sign in
-
🚀 Python Learning Journey – Day 4 Today I explored an interesting concept in Python – String Slicing with Skip Value 🔥 📌 What I Learned: ✔️ We can slice strings using start : end : step ✔️ The step (skip value) helps us jump characters ✔️ Makes data extraction faster and more efficient 💻 Example: word = "amazing" print(word[1:6:2]) 👉 Output: mzn 💡 Explanation: We start from index 1 and skip every 2 characters → m, z, n 📌 Other Useful Slicing Tricks: 🔹 From beginning: print(word[:7]) 🔹 Till the end: print(word[0:]) 🔹 Reverse a string: print(word[::-1]) ✨ Python slicing is simple but very powerful when working with text data! #Python #Coding #LearningJourney #100DaysOfCode #Programming #Beginners
To view or add a comment, sign in
-
🚀 Python Learning Journey – Small Concept, Big Clarity! 💠 I learned a small but interesting concept today 👇 👍 Let’s Test Your Logic !!!!! 🤔How to find the 2nd occurrence of a character in a string 🔸Let’s try a quick challenge: 📌 Consider this string: "pythonn" ❓ Question: What is the position of the second occurrence of "n"? 🤔 Take a moment and guess before you look below… 💡 Here’s the Python logic: a = "pythonn" b = a.find("n") print(a.find("n", b+1)) 👇 Drop your answer in the comments! I’ll share the correct answer soon 😉 #Python #CodingChallenge #LearningJourney #Beginners #Programming #WomenInTech
To view or add a comment, sign in
-
📘 Today’s Learning – Python Strings & Slicing 🐍 Today I explored one of the most important concepts in Python — Strings and Slicing. 🔹 Learned what strings are and how they store text data 🔹 Understood that strings are immutable (cannot be changed directly) 🔹 Practiced indexing to access characters 🔹 Learned slicing (start : stop : step) to extract parts of strings 🔹 Explored negative indexing and string reversal using slicing 🔹 Understood difference between strings vs lists 🔹 Practiced string methods, operators, and loops 🔹 Learned f-strings for clean and professional output 💡 One key takeaway: 👉 Slicing and indexing are very powerful for data manipulation and are widely used in real-world applications. 📌 Also practiced a small logic: Counting vowels in a string using loops and conditions. Step by step, improving my Python fundamentals 🚀 #Python #LearningJourney #DataScience #Coding #Beginner #Strings #Programming #100DaysOfCode #FullStackAcademy
To view or add a comment, sign in
-
-
One concept in Python that appears simple but carries deeper implications is mutability. On the surface, we categorize: - Lists and dictionaries as mutable - Strings and tuples as immutable However, the real impact becomes clear when considering memory and references. In Python, variables do not store values directly; they store references to objects. Thus, when you assign one variable to another, you are not copying data — you are pointing to the same object in memory. This distinction leads to very different behaviors between mutable and immutable types. With immutable objects, any modification results in the creation of a new object. In contrast, mutable objects allow the original object to be modified in place. This difference directly influences: - How functions behave - How data flows across modules - The emergence of subtle bugs in production Understanding this concept has aided me in debugging issues that initially seemed perplexing. It has also transformed my perspective on passing data between functions. Sometimes, the problem lies not in the logic but in how the data is being referenced. #Python #SoftwareEngineering #BackendDevelopment #Programming
To view or add a comment, sign in
-
Day 1 — Starting My Python Journey Today I practiced the basics of Python 🔹 Working with variables 🔹 Using the print() function 🔹 Performing basic operations Here’s a simple snippet I tried: name = "Ankaj" age = 34 print(name, age) a = 20 b = 10 print(a + b) # Addition print(a - b) # Subtraction print(a / b) # Division What I learned: Python makes it really easy to work with variables and perform operations without complex syntax. I’m documenting my journey as I learn every day Follow Ankaj Python Hub to grow with me https://lnkd.in/g3ayfy7M #Python #LearnPython #CodingJourney #100DaysOfCode #Beginner
To view or add a comment, sign in
-
🔁 Python Revision – Lists & List Comprehension Continuing my Python fundamentals revision 🐍 In this session, I focused on: ✔️ Lists (creation, indexing, slicing) ✔️ List methods (append, remove, sort, etc.) ✔️ Iterating through lists ✔️ List Comprehension Practiced working with lists to store and manipulate data efficiently, and explored list comprehension for writing cleaner and more concise code. Documented my practice in a Python Notebook and shared it as a PDF to track my progress. Learning how to handle data in Python step by step 📊 #Python #Revision #Lists #ListComprehension #Programming #DataAnalytics #LearningJourney
To view or add a comment, sign in
-
🎯 Tech Learning Journey - Day 06: Python List Comprehensions - Write Less, Do More! List comprehensions are a shortcut for creating lists in Python. Instead of writing multiple lines with loops, you can build a new list in just one clean line that reads like English. # Traditional way \(takes 3 lines\) squares = \[\] for num in range\(5\): squares.append\(num \*\* 2\) # List comprehension \(1 line!\) squares = \[num \*\* 2 for num in range\(5\)\] Where I use this: Transforming data, filtering lists, and making my code shorter and more readable. #Python #Coding #Programming #ListComprehensions
To view or add a comment, sign in
-
-
🚀 Just Published My First Medium Article! I’m excited to share my first blog on Medium: 👉 Python Basics – Part 1 As a beginner, I started exploring Python and realized something important — strong fundamentals make everything easier later. In this article, I’ve covered: ✔️ Variables and data types ✔️ Basic syntax and operations I also tried to keep it simple and beginner-friendly, so anyone starting their coding journey can understand it easily. 💡 Learning is not about knowing everything at once — it’s about starting small and staying consistent. This is just the beginning of my journey into tech and self-improvement. 🔗 Read my full article here: https://lnkd.in/dfFnCFm2 I’d love to hear your feedback and suggestions! #Python #LearningJourney #Beginners #Coding #SelfImprovement #WomenInTech
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