Day 35 of python learning journey Today’s Python topic: Types of Patterns 👩💻🔥 Practiced how to build logic using patterns. As shown in the image, I covered 4 main types: 1. Star Patterns → Using `*` to create shapes like triangles and pyramids. Helps understand loops and spacing. 2. Number Patterns→ Arranging numbers in increasing or decreasing order. Builds strong logical thinking. 3. ABC Patterns → Printing alphabets A, B, C in order. Great for understanding sequences. 4. Pyramid Patterns → Centered shapes using spaces + symbols. Best way to learn alignment and indentation. Why patterns matter: They improve programming skills, help with loops, build logic, and are super useful in coding interviews. Bottom line from today: *Patterns = Practice + Logic + Creativity* Special thanks to the CEO G.R NARENDRA REDDY Sir for constant guidance and motivation. #Python #PatternProgramming #Loops
Python Patterns: Loops and Logic Practice
More Relevant Posts
-
📘 Python Learning – Day 4 Highlights 🐍 Today’s class was about Lists & Basic List Operations — super useful for handling multiple data! 🔹 What is a List? An ordered, changeable collection that allows duplicates 🔹 Accessing Data: Indexing & slicing (list[0], list[1:4]) 🔹 List Operations: ✔ Add → append(), insert() ✔ Remove → remove(), pop(), clear() 🔹 Built-in Functions: len(), sum(), max(), min(), sort(), reverse() 🔹 Practice Program: Created a simple menu-driven program to add, remove, and display list items 💡 Lists make data handling easier and more dynamic in Python Step by step, getting more comfortable with coding 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
To view or add a comment, sign in
-
-
🚀 Day 6 of Python Learning: Functions in Python Today I learned how to organize and reuse code using functions — a key concept for writing clean and efficient programs. 🔹 What is a Function? A function is a block of code that performs a specific task and can be reused whenever needed. 🔸 Creating a Function Example: def greet(): print("Hello, welcome to Python!") greet() 🔸 Function with Parameters Example: def greet(name): print("Hello", name) greet("Rohit") 🔸 Function with Return Value Example: def add(a, b): return a + b result = add(5, 3) print(result) 💡 Key Learning: Functions help reduce code repetition and make programs more structured and readable. 🧪 Practice Task: Create a function to check even or odd Create a function to add two numbers Create a function to find the square of a number 🎯 Interview Question: What is the difference between return and print in Python? Answer: "print displays output on the screen, while return sends the value back to the function caller." #Python #Learning #CodingJourney #Day6 #Programming #SDET Masai #dailylearning #masaiverse #SDET
To view or add a comment, sign in
-
-
🚀 Day 5 of Python Learning: Loops in Python Today I learned how to repeat tasks using loops — one of the most powerful concepts in programming. 🔹 What are Loops? Loops help us execute a block of code multiple times without writing it again and again. 🔸 For Loop Used when the number of iterations is known. Example: for i in range(1, 6): print(i) 🔸 While Loop Used when the number of iterations is not known. Example: i = 1 while i <= 5: print(i) i += 1 🔸 Loop Control Statements ✔ break → Stops the loop completely ✔ continue → Skips current iteration ✔ pass → Does nothing (placeholder) 💡 Key Learning: Use "for loop" for fixed iterations and "while loop" for condition-based execution. 🧪 Practice Task: Print numbers from 1 to 10 using a loop Find factorial of a number 🎯 Interview Question: What is the difference between for loop and while loop? Answer: "For loop is used when the number of iterations is known, while loop is used when the condition decides the execution." #Python #Learning #CodingJourney #Day5 #Programming #SDET Masai #dailylearning #masaiverse #SDET
To view or add a comment, sign in
-
-
🚀 Day 11 of Python Learning: Loops and Patterns in Python Today I practiced loops in Python and learned how to create patterns using nested loops. This helps improve logic building and problem-solving skills. 🔹 What are Patterns? Patterns are shapes or number/star designs created using loops. They are great for understanding loop control and nested loops. 🔸 Using For Loop for i in range(5): print("*") 🔸 Star Pattern Example for i in range(1, 6): print("*" * i) Output: * ** 🔸 Number Pattern Example for i in range(1, 6): for j in range(1, i + 1): print(j, end=" ") print() 💡 Key Learning: Nested loops are useful when one loop runs inside another loop, especially for patterns and matrix-style problems. 🧪 Practice Task: ✔ Print reverse star pattern ✔ Print square pattern using stars ✔ Print number triangle pattern ✔ Try same patterns using while loop 🎯 Interview Question: What is a nested loop in Python? Answer: A nested loop is a loop inside another loop. It is used when repeated iterations are needed within each cycle of the outer loop. 📌 Day 11 completed — logic building step by step! #Python #Learning #CodingJourney #Day11 #Programming #SDET #100DaysOfCode Masai #dailyleaning #masaiverse
To view or add a comment, sign in
-
Python Learning Journey – 🚀 Today’s focus was on control flow statements that make loops smarter and more efficient. Instead of just running loops, I practised how to control their behaviour using break, continue, and pass. Here’s what I worked on: • Used break to stop execution when a condition is met (sum exceeding a limit) • Used continue to skip specific iterations (printing only odd numbers) • Used 'pass' as a placeholder in conditional statements • Combine break and continue in a real scenario (processing a word list with conditions) These concepts helped me understand how to write more optimised and controlled logic in Python programs. Every day, getting better at thinking logically and writing cleaner code. Big thanks to VASU KUMAR PALANI and PythonLife for the continuous guidance and support. #Python #CodingJourney #LearnInPublic #PythonBasics #Programming #Consistency #TechSkills
To view or add a comment, sign in
-
-
I used to write code to solve problems… now I’m learning how to structure it. Today’s Python MahaRevision 🧩 Chapter 10: Object-Oriented Programming This chapter introduced concepts that actually make code feel organized: → Classes & Objects → Class attributes vs Instance attributes → Understanding “self” (this one took a moment to click) → init() constructor → @staticmethod At first, all these terms felt a bit overwhelming. But while doing the practice set, things started making more sense. Practice set done: Created classes, worked with objects, used constructors, and experimented with different types of methods. Biggest takeaway: Good code isn’t just about making it work… it’s about making it structured and reusable. Still learning, but definitely seeing growth. #Python #LearningInPublic #CodingJourney #Programming #OOP
To view or add a comment, sign in
-
Python Learning Journey – Day 5 🚀 Loops are where logic starts to feel powerful. Today, I focused on applying for and while loops to solve real problems instead of just learning syntax. Here’s what I built: • Calculated sum of squares (1 to 5) • Created a countdown program using while loop • Printed multiplication tables using nested loops • Found sum of even numbers in a range • Calculated sum from 1 to n • Iterated through lists efficiently • Printed custom ranges (-10 to -1) • Generated cubes of numbers Each problem improved my understanding of iteration, control flow, and writing cleaner logic. Consistency matters more than speed. One step every day. Big thanks to VASU KUMAR PALANI and PythonLife for the continuous learning support. #Python #CodingJourney #LearnInPublic #PythonLoops #Programming #Consistency #TechSkills
To view or add a comment, sign in
-
-
Python Learning Journey – Day 7 🚀 Today’s focus was on working with lists and improving problem-solving using Python. I practised different list operations and real-world scenarios to better understand how data can be handled efficiently. Here’s what I worked on: • Reversing a list • Finding common elements between two lists • Extracting unique elements • Removing duplicates while preserving order • List concatenation and repetition • Removing elements based on index conditions • Inserting elements into a list • List comprehensions (squares, even numbers, word lengths) This session helped me get more comfortable with list manipulation and writing cleaner, more efficient Python code using comprehensions. Step by step, improving logic and coding confidence. Big thanks to VASU KUMAR PALANI and PythonLife for the continuous guidance and support. #Python #CodingJourney #LearnInPublic #PythonLists #Programming #100DaysOfCode #Consistency #TechSkills
To view or add a comment, sign in
-
-
🚀 Python Basics to Advanced Learning Series – Day 11 Today’s session was about understanding Tuples in Python. It helped me learn how to work with another important data structure. What I learned today: • Introduction to Tuples and how they work in Python • How to create tuples using different methods • Tuples can store heterogeneous data (different data types) • Tuples are immutable – once created, we cannot modify them • Understanding tuple packing and unpacking • Accessing tuple elements using indexing and slicing • Learning important tuple built-in methods like "count()" and "index()" • Practiced examples to understand tuple behavior clearly This session helped me understand the difference between lists and tuples, and when to use tuples in programming. I’m learning step by step as part of my Python Basics to Advanced Learning Journey at Global Quest Technologies, and I’m gaining more clarity every day. Excited to continue learning and exploring more concepts 🚀 G.R NARENDRA REDDY #Python #PythonProgramming #LearningJourney #Coding #Tuples #DataStructures #ProblemSolving #SoftwareDevelopment #TechLearning #Developers #GlobalQuestTechnologies
To view or add a comment, sign in
-
-
Python Conditional Logic – Strengthening Core Programming Foundations Today, I implemented conditional logic in Python to classify student marks into Pass/Fail categories. While the problem appears simple, it reinforces one of the most fundamental pillars of programming — decision-making through logical conditions. This exercise enhanced my understanding of: • Conditional control flow (if-elif-else) • Robust user input handling • Basic data validation techniques • Writing clean, structured, and maintainable code Developing strong fundamentals in conditional logic is essential, especially in data analytics, where categorization, rule-based filtering, and decision-driven insights play a critical role. “Great decisions start with simple conditions — master them today.” #Python #DataAnalytics #Programming #ProblemSolving #Coding #AI #LearningJourney #TechSkills ABTalksOnAI Anil Bajpai
To view or add a comment, sign in
Explore related topics
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