📌 Day 11 of My #50DaysOfPython Challenge 🐍 🔹 Task: Count the Number of Vowels and Consonants in a String Today’s challenge focused on string manipulation — a core concept in Python programming. I built a simple program that takes a word or sentence as input and counts how many vowels and consonants it contains. 🧠 What I Learned: How to iterate through characters in a string The use of sets for faster lookup ({'a', 'e', 'i', 'o', 'u'}) Using .lower() and .isalpha() for clean, accurate results The importance of filtering only alphabetic characters 🧪 Example: Input: Hello World Output: Vowels: 3 Consonants: 7 Working with strings is always fun because it improves both logic and attention to detail 🔤 Excited to keep building something new each day 🚀 #Python #CodingChallenge #50DaysOfPython #ProblemSolving #LearningJourney #CodeNewbie

To view or add a comment, sign in

Explore content categories