Automatically translated.View original post

🐍 Daily Python Problem: Let's practice coding. ✨

Today, let's do an interesting and often used basic problem in Python: "Vowels: a, e, i, o, u in String."

📝 Problem & Task:

Write a function named count _ vowels (text) that accepts the parameter as String. You must count all vowels in the String, including lowercase and uppercase!

💡 Solution Insight:

Can see our code. / Yes! The techniques used are:

1.Define vowel letter set vowels = 'aeiou'

2. Convert the accepted String to all lowercase with .lower () before looping (Loop) so we don't have to check the split caps! (for char in text.lower ():)

3. Use the condition if char in vowels: to check if the letter is a vowel.

4. Count + = 1 and return return return count

💖 Keep Going!

Practicing small problems like this every day will improve our coding skills very well! Check out the Output sample and try it yourself!

# Pythonlearning # data # ai # data aanalyst # learnonlemon8

2025/10/29 Edited to

... Read moreนอกจากการเขียนฟังก์ชัน count_vowels เพื่อหาจำนวนสระในสตริงแล้ว อีกเคล็ดลับที่ช่วยให้โค้ดอ่านง่ายและมีประสิทธิภาพ คือการใช้ set สำหรับเก็บชุดสระแทนการใช้ string โดยตรง เพราะการตรวจสอบสมาชิกใน set จะทำได้เร็วขึ้นอย่างมีนัยสำคัญ เช่น vowels = {'a', 'e', 'i', 'o', 'u'} อีกทั้งยังสามารถปรับฟังก์ชันให้รองรับสระภาษาไทยหรืออักษรพิเศษอื่นๆ ได้ตามต้องการ เพียงเพิ่มอักขระลงในชุดสระที่เรากำหนด ซึ่งเหมาะสำหรับผู้ที่สนใจทำงานกับข้อความหลากหลายภาษา ในกรณีที่ต้องการนับสระในประโยคหรือข้อความยาวๆ การใช้เทคนิคนี้ช่วยลดเวลาที่ใช้ในการประมวลผลและทำให้โค้ดดูสะอาดขึ้นมาก สุดท้าย การฝึกทำโจทย์แบบนี้ทุกวัน นอกจากจะช่วยเพิ่มทักษะการเขียนโค้ดแล้ว ยังช่วยให้เข้าใจหลักการพื้นฐานของโปรแกรมมิ่ง ซึ่งเป็นสิ่งสำคัญสำหรับผู้เริ่มต้นเรียน Python อย่าลืมทดลองเขียนโค้ดเองและรันโค้ดดูผลลัพธ์ เพื่อเรียนรู้จากข้อผิดพลาดและพัฒนาให้ดีขึ้นนะคะ!

Related posts

My Programming Interest Just Skyrocketed! 🚀
I just discovered something that has made my interest in programming explode to 1000000000000000%! 🤯 🎮 Learning Programming is Like a Game Adventure! From Python, Java, JavaScript, to HTML, there are all kinds of programming languages available, along with systematic topic courses. The learning p
Valder

Valder

2174 likes

CPT Coding
Here is a practice CPT coding question question. It shows how to find the CPT code for an abdominal biopsy. The CPT book has all of the different procedure codes in it. At least one CPT code must be on every claim that you submit to the insurance company. #medicalbiller #medicalcoder #medicalc
midnightcoding

midnightcoding

902 likes

ICD-10-CM Coding Practice
Here's a quick video showing how to find the ICD-10-CM code for congestive heart failure. This video was originally on my TikTok, and over there I do subscription videos that are more advanced and are meant for students who are getting ready to take the CPC exam. If you're interested in
midnightcoding

midnightcoding

513 likes

How to Learn Coding Fast Even as a Beginner
#codingforbeginners #programming #studymotivations #webdevelopment #learntocode
Aysha

Aysha

803 likes

A person wearing headphones sits at a desk with a computer displaying a graph, a plant, and a glowing yellow lamp. The image has text overlay 'Learn Python in 50 DAYS' and 'lemon8 @compskyy'.
A blurred background of a laptop with text overlay outlining the Python learning schedule for Day 1-20, covering programming basics, operations, strings, variables, and control structures.
A blurred background of a desk with a computer screen, featuring text overlay detailing the Python learning schedule for Day 21-40, including functions, modules, exceptions, files, and functional programming.
Learn Python in 50 Days!!
🐍If you want to learn how to code and you don't know what programming language to start with, then I would highly recommend Python! It's a super popular language in the industry and you can do so much with it. It is very beginner friendly compared to most languages and the fields you could
CompSkyy

CompSkyy

600 likes

Learn the basics of computer science & coding ✨
This book caught my eye and I don't regret purchasing it. This book is filled with bite-sized info to learn computer science and coding, and the information was also very well presented. When I shared this book one day, I got a lot of messages about the book details so I also included them here
teal.days

teal.days

1734 likes

📚 How I’m SelfTeaching Medical Coding from Scratch
Hey! 👋 I wanted to share my journey of self teaching medical coding yes, even with three kids, a packed schedule, and no prior healthcare background. If you’re thinking of diving into a new skill or career path, this might give you that little push 💪✨ 📌 Why Medical Coding? I wanted something
Jasmine Pinkk

Jasmine Pinkk

505 likes

A study desk with an iPad, highlighter, textbook, and notes, featuring the title "How to get a 4.00 GPA Based on your Major" and "All majors included!".
Strategies for Business & Management Majors (Business Management, Accounting, Finance, Economics), including Active Participation, Case Study Analysis, Practice Financial Modeling, and Utilize Study Groups, with mentions of MarketingSherpa and GroupMe.
Strategies for Communications & Education Majors (Communications, Education), including Create Multimedia Presentations, Peer Teaching, Reflective Journaling, and Attend Workshops, with mentions of Canva and Notion.
Major-Specific Strategies to Achieve a ✨4.0 GPA✨🎓🧠
🎓1. Business & Management Majors (Business Management, Accounting, Finance, Economics) ✅Active Participation: Example: In a Marketing class, when discussing a case study like Coca-Cola’s rebranding, share your analysis of the marketing mix (4Ps). This not only engages you in the materi
Chalie_Baker

Chalie_Baker

7061 likes

A desk setup with a monitor displaying a car, a laptop, and various items. Overlay text reads "5 FREE CODING BOOTCAMP Beginner to advanced" and "SWIPE," indicating an introductory image for a list of coding bootcamps.
A laptop screen displays the Codecademy website, featuring a sign-up form and text about transforming teams with tech skills. The image highlights Codecademy as a free coding resource.
A laptop screen shows the freeCodeCamp website, emphasizing learning to code, building projects, and earning certifications for free. It also displays a certification example and logos of companies that hire graduates.
5 coding bootcamps to kickstart your tech career 👩‍💻
1. freeCodeCamp - Duration: Self-paced - Success Rate: Well-known for helping learners build strong portfolios and get jobs. FreeCodeCamp has a vast community and provides comprehensive hands-on projects. 2. App Academy Open - Duration: 24 weeks (full-time) or 48 weeks (part-ti
vedha | career tips (tech) 👩‍

vedha | career tips (tech) 👩‍

519 likes

Medical coding student 👩🏻‍🎓
I’ve been studying medical coding for the past year and a half, and I’ll be finishing my program in two months. I’m excited to start my career and find a job working from home, where I can use my skills to help with medical records. #medicalcodingstudent #medicalcoder #workfromhomelifestyle
Ipamskii

Ipamskii

674 likes

The image shows an open ICD-10-CM coding book with alphabetical tabs, illustrating how to find the code for endometriosis.
A hand points to the 'E' tab in the ICD-10-CM book, demonstrating the first step to locate a code in the index.
The image displays the ICD-10-CM Index to Diseases and Injuries, highlighting the 'Encounter - Endometriosis' section to find the relevant term.
ICD -10-CM Coding Practice
Medical coders use the ICD-10-CM book to find diagnosis codes. There are thousands of different codes. There are many rules and guidelines that a coder needs to understand :) The examples that I post are for people to just learn and see the basics. If you want to become a medical coder, my next
midnightcoding

midnightcoding

514 likes

Top Free Websites to LearnCoding in 2025 (No Cost)
Want to learn coding without spending a dime? These free coding websites will help you kickstart your tech career! From beginner-friendly tutorials to full-stack roadmaps and real projects, these platforms offer everything you need #codingforbeginners #freecodingresources #webdevelopment #t
Aysha

Aysha

81 likes

A laptop displays coding terminal output with a keyboard in the foreground, featuring the text "BEST AI Tutor for Coding," highlighting an AI-powered programming learning platform.
BEST AI Tutor for Coding
Best AI Tutor for Coding in 2026? This Is What Serious Learners Are Switching To Most people don’t fail at coding because it’s hard. They fail because they’re learning alone. Watching tutorials. Copying code. Getting stuck. Quitting. BootSelf changes that. BootSelf is an AI-powered coding tuto
Code with BootSelf AI

Code with BootSelf AI

17 likes

A person views a computer screen displaying the YouTube logo. The image introduces the 'Top 5 Coding YouTube Channels for Beginners' and encourages users to swipe to learn to code for free.
This image features the freeCodeCamp YouTube channel, highlighting its free full coding courses covering web development, Python, and data science. It recommends the HTML & CSS Crash Course for beginners.
This image displays the Traversy Media YouTube channel, noted for its frontend and backend web development tutorials with real projects. It suggests the JavaScript Crash Course as a starting point.
Top 5 Coding YouTube Channels for Beginners
Want to learn coding but don’t know where to start? These 5 YouTube channels are perfect for beginners! Whether you’re into web development, Python, or full-stack programming, these channels offer free, high-quality tutorials to help you get started #learntocode #codingforbeginners #webdevelop
Aysha

Aysha

27 likes

medical coding practice
Find the ICD-10-CM code for family history of diabetes. #medicalcoding #medicalcoder #medicalcodingcourse
midnightcoding

midnightcoding

86 likes

Best app to Learn Coding
Looking for the best app to learn coding without spending thousands on bootcamps or wasting hours on random YouTube tutorials? 📱👨‍💻 Let me save you the search: BootSelf is a game-changer for beginners. This app gives you: ✅ A 24/7 AI coding mentor — ask anything, anytime ✅ Real-time code exp
Code with BootSelf AI

Code with BootSelf AI

324 likes

how I got started learning Python 🐍💻👾
I’ve been learning Python this summer to prepare for my research lab and courses in the fall. Programming isn’t required for my major, so I’m taking the time to learn it alone. The biggest tip I can give is specific goals from the beginning! Speaking from experience, this will save a lot of time an
reagan

reagan

46 likes

A computer screen displays a game interface with Python-like code on the right and a farming simulation on the left, illustrating how the game teaches coding. The text overlay asks, "this game teaches you how to code!?"
A computer screen shows a game with multiple code windows and a farming simulation. An overlay explains the game's language is similar to Python, suitable for beginners and experienced coders with complex challenges.
A computer screen displays a game's text editor and entity list, including "can_harvest" and "range." Overlays state "the farmer was replaced" and explain the game teaches coding basics to build a foundation for further self-study.
this cute app can teach you how to code python
ive always wanted to learn how to code more than html and css, something on the complex side. it always has seemed intimidating until i stumbled upon this game/app where the task are gamified, so its seems more fun to explore rather than formal courses. are you willing to give it a shot? #l
yuuki

yuuki

372 likes

Best - FREE - coding sites
learning to code is important and a great look for your resume! plus it’s fun! ANYONE CAN LEARN! these are my favorite sites I’ve utilized to learn new skills! #codinggirl #codingforbeginners #embracevulnerability #shareyourthoughts #Lemon8Diary
LOLLIPOPAK

LOLLIPOPAK

2980 likes

🔥 Assign Multiple Values in Python (Easy!)
🔥 Assign Multiple Values in Python (Easy!) Assigning multiple values in Python makes your code shorter, cleaner, and more readable 💻 Perfect trick for beginners and interview prep 🚀 Save this post and follow for daily Python tips 🐍 #Python #LearnPython #PythonBasics #PythonTips
TechKeysX

TechKeysX

0 likes

A pink graphic with the text "Beginner Friendly Coding Languages" and an outline of a desktop monitor displaying code, introducing the topic of beginner-friendly programming.
A pink graphic detailing HTML, including its definition as a hyper-text markup language for web design, its front-end nature, simple syntax, and compatibility with CSS and JavaScript, alongside a browser icon and HTML5 logo.
A pink graphic describing JavaScript for web and app development, its back-end capabilities, synergy with HTML, and widespread teaching resources, accompanied by a mobile app interface and the JavaScript logo.
Coding Languages for Beginners!
These were my first coding languages! 👩‍💻 Also CSS!! It pairs perfect with html. I left it off the list just because of how it works with html, they go hand in hand! Get out and start coding👾 #code #learntocode #codingstudent #coding #embracevulnerability
LOLLIPOPAK

LOLLIPOPAK

362 likes

The image displays the cover of an AAPC ICD-10-CM Expert diagnosis codes book for providers and facilities, with an overlay stating, 'How I find the code for seizure in the ICD-10-CM book'.
A hand is shown opening the ICD-10-CM book to the 'S' section of the index, with an overlay instructing, 'Go to S in the Index'.
The image shows a page from the ICD-10-CM index, with the term 'Seizure' visible, accompanied by an overlay that reads, 'Read down the page until you find the term seizure'.
ICD-10-CM Coding Practice
This is a quick tutorial showing how to find a code in the ICD-10-CM book. If you want to learn more and become a medical coder, my next medical coding training course is available for sign up. It is a 16-week program that will prepare you to take the CPC exam from AAPC. L!nk in b!o. #medicalcodi
midnightcoding

midnightcoding

192 likes

ICD-10-CM coding practice
Here is a quick video showing how to find the code for sprained ankle in the ICD-10-CM book. If this app gets banned you can find all of my coding tutorials on Yo*Tube. #coding #medicalcoding #medicalcoder #medicalcodingcourse
midnightcoding

midnightcoding

195 likes

Vibe Coding: The AI Coding Trend
Vibe coding = telling AI what you want and letting it build the code. It feels magical, but also a little dangerous long-term. #VibeCoding #AICoding #TechTrends #WomenInTech #CodeWithAI
Katherine Geleta

Katherine Geleta

64 likes

A desk setup with a white keyboard, ergonomic mouse, and pink notebook. Text overlay reads 'ACE YOUR TECH INTERVIEW' with an A+ symbol, indicating the article's main topic.
A desk with a computer monitor displaying a learning platform, a white keyboard, and colorful pens. Text overlay says 'PRACTICE PROBLEMS DAILY' and 'Use platforms like HackerRank or LeetCode to improve.'
A desk with a computer monitor, white keyboard, notebook, glasses, and a tablet. Text overlay states 'FOCUS ON DATA STRUCTURES' and 'Understand arrays, stacks, and trees thoroughly.'
How To Prep For Your Coding Interview!
Coding interviews can feel super intimidating, but the right prep strategy can make all the difference. Whether you’re a beginner or brushing up for your next big opportunity, here are some tips to help you crush it. Practice problems daily. Platforms like HackerRank, LeetCode, and Codeforces ar
CompSkyy

CompSkyy

32 likes

Global Variables in Python 🌍
Global variables allow data to be shared across your program, but misuse can lead to bugs. Learn when and how to use them correctly in Python 🐍 #Python #PythonBasics #LearnPython #Coding #Programming
TechKeysX

TechKeysX

0 likes

A woman with curly hair holds a microphone, presenting a title card that reads 'Data Analysis with Python For Beginners'.
A woman with curly hair holds a microphone, presenting an introductory text about simple steps for learning Python for Data Analysis.
A woman with curly hair holds a microphone, presenting a list of four steps for beginners to learn Python for Data Analysis.
Beginner Friendly Tips For Learning Python for Dat
If I was to learn Python for Data Analysis as a beginner, I would start with the basics, I would learn: Variables Data Types Loops and Functions. There's no Python without libraries and these are the most used for Data Analysis: 👉 Pandas - Data Manipulation 👉 Numpy - Numerical Comput
NeLo

NeLo

77 likes

The image displays the cover of an "ICD-10-CM EXPERT" book from AAPC, focusing on diagnosis codes for providers and facilities in Medical Coding and Billing. It features the AAPCCA Hardship Fund logo and decorative blue flowers.
Handwritten lecture notes detail 10 steps for ICD-10-CM coding, defining symptoms and signs. An example for a bone marrow donor is provided, emphasizing the use of color for memory and the importance of examples in medical coding.
Handwritten notes cover Chapter 5 of ICD-10 Medical Coding, including the purpose of ICD-10-CM and PCS, coding conventions, and 10 steps for accurate ICD-10-CM coding. Tips for sequencing diagnoses are also included, highlighting neatness and organization.
Coding and Billing
Learning coding ! #medicalschool #medicalcoding #medicalbilling #schoolnotes
Shanel red

Shanel red

109 likes

A desk setup features a monitor displaying coding topics like DSA and Web Development, a pink Stanley tumbler, and a keyboard. Text overlay reads 'coding projects for your portfolio'.
A white box lists coding project ideas: Expense Tracker, Habit Tracker App, Recipe Finder by Ingredients, and Interactive Data Visualizer, each with a brief description.
A laptop screen displays 'one day at a time.' with a text overlay asking viewers to comment if they'll add these projects to their portfolio.
Unique Coding Projects You NEED In Your Portfolio!
Want to make your portfolio stand out? Here are some unique coding projects that showcase your skills and creativity: Expense Tracker: Build a personal finance tracker to monitor spending, categorize expenses, and visualize budgets with graphs. 💰 Habit Tracker App: Create an app to log daily ha
CompSkyy

CompSkyy

82 likes

A desk setup featuring a Dell monitor, a white CHERRY keyboard, and a pink mouse, with the text overlay "easy coding projects for beginners" and a "LEARN MORE" button.
A white note card listing "Easy coding projects for beginners" including a to-do list app, personalized calculator, weather app, and simple quiz game, with descriptions for each.
An outdoor scene with a wide road lined by palm trees and buildings under a clear blue sky, with the text overlay "Comment 💻 if you'll try these projects!"
Easy Coding Projects!!
If you want to learn how to code then these are the perfect beginner projects! Here are some fun and easy projects to build your skills: To-Do List App: Create a simple app where you can add, edit, and delete tasks—perfect for practicing JavaScript or Python. ✅ Personalized Calculator: Build a
CompSkyy

CompSkyy

172 likes

A dark blue background with the title 'TOP 5 FREE CODING eBOOKS FOR BEGINNERS'. An illustration shows a laptop displaying code, a stack of books, and a coffee cup, with a red 'FREE' badge. Text below states these books are beginner-friendly and practical.
A dark blue background features the title 'Eloquent JavaScript by Marijn Haverbeke' and the book cover showing a bird. Text describes the book as an in-depth JavaScript guide with diagrams and real-world examples.
A dark blue background displays the title 'Python for Everybody by Dr. Charles Severance' and the book cover with gears. Text explains the book teaches Python basics for web scraping and databases, used in university courses.
Top 5 FREE Coding eBooks for Beginners
#freedownloads #codingforbeginners #freepdf #onlinelearning #webdevelopment
Aysha

Aysha

204 likes

A coding workstation with multiple monitors displaying code, a laptop, and a keyboard. A black cap rests on the desk. Text overlay reads "Best AI app to Learn coding," promoting an app for learning programming.
Best AI app to Learn coding
Tired of feeling stuck when learning to code? I’ve tried YouTube tutorials, free bootcamps, and dozens of apps—but nothing worked consistently… until I found BootSelf. BootSelf isn’t just a coding app—it’s your AI-powered mentor that teaches, explains, and even prepares you for your tech career
Code with BootSelf AI

Code with BootSelf AI

132 likes

See more