Tuesday, July 22, 2025

WTP in python - Vowel or Consonant

# Vowel or Consonant

# Input a single alphabet and check whether it is a vowel or consonant.


letter=input("Please enter the letter: ")


if (letter == "a" or letter == "e" or letter == "i" or letter == "o" or letter == "u"):

    print(f"{letter} is vowel ") 

else:

    print(f"{letter} is consonant" )

 

No comments:

Post a Comment

Git & GitHub Interview Questions & Answers

  Git & GitHub Interview Questions & Answers 🧑‍💻🌐   1️⃣ What is Git?   A: Git is a distributed version control system to track ...