1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AlladinOne [14]
3 years ago
11

Write a Python program to check whether an alphabet is a vowel or consonant.​

Computers and Technology
1 answer:
Anton [14]3 years ago
8 0

Answer:

The program to this question an be given as:

Program:

char = input("Enter any alphabet: ") #input alphabet from user in char variable.

if char in ('a', 'e', 'i', 'o', 'u'): #check condition in if block.

print("vowel.")  #print value.

else:   #else block

print("consonant.")  #print value.

Output:

Enter any alphabet: r

consonant.

Explanation:

In the above python program firstly we define a variable that is "char" it is used to take input from the user. for user input, we use the input function in the python.

Then we define the conditional statement in this statement in if block we pass alphabets that is 'a', 'e', 'i', 'o', 'u' and check if user input alphabet and this alphabet match it will print vowel. otherwise, it will print consonant.  

You might be interested in
Witch of the following is a malicious program that can replicate and spread from computer to computer?
Papessa [141]
The answer is A, a virus. Spam can become a virus but only if it tricks you into downloading something.

4 0
3 years ago
Is techonalygy harmful or useful
dexar [7]

Tech can be both harmful and useful. Some techs you can use for school or educational purposes. Some apps can harm your brain.

4 0
4 years ago
Read 2 more answers
Materials that allow electricity to flow are called A) Metals B) Attractors C) Conductors D) Insulators
LUCKY_DIMON [66]

The answer to the blank space in the given question is (C) conductors.

Conductors are<em> objects that can be used to make electrical current or heat flow from the source to a target object.</em> Some objects are better conductors than others due to its materials. For example, objects made from metals are always better conductors than objects made from wood or glass.

5 0
3 years ago
Read 2 more answers
In Python, programmers use square brackets and an index range to slice multiple characters from a string.
il63 [147K]
(True) jgjgjgbfbfbfbdvdvdvdv
4 0
3 years ago
Read 2 more answers
Write a program to input the TotalCost and display the Assured gift as per the following criteria TotalCost(TC) Assured Gift Les
Yanka [14]

Answer:

The program in Python is as follows:

TotalCost = int(input("Total cost: "))

if TotalCost <= 2000:

   print("Wall Clock")

elif TotalCost >= 2001 and TotalCost <= 5000:

   print("School Bag")

elif TotalCost >= 5001 and TotalCost <= 10000:

   print("Electric Iron")

else:

   print("Wrist Watch")

Explanation:

This gets input for total cost

TotalCost = int(input("Total cost: "))

If the total cost is up to 2000, print wall clock as the assured gift

<em>if TotalCost <= 2000:</em>

<em>    print("Wall Clock")</em>

If the total cost is between 2001 and 5000 (inclusive), print school bag as the assured gift

<em>elif TotalCost >= 2001 and TotalCost <= 5000:</em>

<em>    print("School Bag")</em>

If the total cost is between 5001 and 10000 (inclusive), print electric iron as the assured gift

<em>elif TotalCost >= 5001 and TotalCost <= 10000:</em>

<em>    print("Electric Iron")</em>

If the total cost is more than 10000, print wrist watch as the assured gift

else:

   print("Wrist Watch")

8 0
3 years ago
Other questions:
  • Write a program that defines a type for a structure that stores information on a student in ENG EK 125. Declare two variables to
    8·1 answer
  • .When an argument is passed ______________, the called method can access and modify the caller’s original data directly.
    8·1 answer
  • LILLE VIC LUNCUL ANCI.
    5·1 answer
  • Which scenario could be represented by the given graph?
    14·1 answer
  • Katla is a project manager. One of the programmers on her team comes to her and says that he permanently deleted some code mista
    5·1 answer
  • Made from fruit juice, water and sugar, The American version contains milk and cream and sometimes egg white​
    9·1 answer
  • While using a web-based order form, an attacker enters an unusually large value in the Quantity field. The value he or she enter
    15·1 answer
  • <img src="https://tex.z-dn.net/?f=4%2C000%201%20tenth" id="TexFormula1" title="4,000 1 tenth" alt="4,000 1 tenth" align="absmidd
    7·2 answers
  • How to tell if your cell phone is being tracked tapped or monitored by spy software?
    12·1 answer
  • Which characters are used in hump notion?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!