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
Calculate the number of telephone
olchik [2.2K]

Answer:

yho

Explanation:

hayi no ntwana.... lala boy

6 0
3 years ago
There are 3 parts to an osha inspection. What are they
vovikov84 [41]

1)<u> </u><u>An opening conference. The opening conference is a brief meeting during which the OSHA inspector will explain the purpose of the inspection.</u>


2) <u>A worksite “walkaround” The walkaround is the actual inspection.</u>


3) <u>A closing conference.</u>

6 0
3 years ago
A network administrator wants to change the frequency of their wireless network to allow more channels that do not interfere wit
MA_775_DIABLO [31]

Answer:

2.4GHz

Explanation:

In the 2.4 GHz band, 1, 6, and 11 are the only non-overlapping channels

8 0
4 years ago
What are examples of computer hardware? mouse, keyboard, motherboard, BIOS
inessss [21]

Answer:

Memory card, console, mouse, cooling system of your pc umm wht else keyboard charger,

Explanation:

3 0
3 years ago
Read 2 more answers
14. Write a program that accepts or rejects applicants for admission at Fictional University. To qualify, an applicant must be a
Gala2k [10]

The required program for applicant selection written in python 3 is :

age = int(input())

grade12_avg = int(input())

ps = int(input())

cs = int(input())

def status(age, grade12_avg, ps, cs):

msg = 'sorry you are not admitted'

if (age >=16) and (grade_avg >=60):

if (ps>=65) or (cs>=50):

message = 'congratulations'

print(message)

else :

print(message)

else:

print(message)

Run through of the codeblock :

age = int(input())

grade12_avg = int(input())

ps = int(input())

cs = int(input())

# input values provided by users

.

def status(age, grade12_avg, ps, cs):

#Define a function named status

msg = 'sorry you are not admitted'

# display message for recepients

if (age >=16) and (grade_avg >=60):

#First condition ; the and keyword means both must be True

if (ps>=65) or (cs>=50):

2nd condition, or statement means only one or both can be true

message = 'congratulations'

#content of message if both conditions are met

print(message)

#Display newly defined content of message

else :

print(message)

#Display initial content of message

else:

print(message)

#Display initial content of message.

Learn more :brainly.com/question/24672775

7 0
3 years ago
Other questions:
  • Ten 9600-bps lines are to be multiplexed using TDM. a. Ignoring overhead bits in the TDM frame, what is the total capacity requi
    6·1 answer
  • Before becoming romantically involved with a coworker you should
    7·2 answers
  • The purpose of an interface is to:___________
    5·1 answer
  • A program called a ( n ) ____ translates instructions written in high-level languages into machine code.
    13·1 answer
  • If you used a peach as a model of an animal cell, what would the peach's skin represent? A.nucleus B.cell wall C.cytoplasm D.cel
    10·2 answers
  • If my usb could unlock my computer with a tool then could i be able to open it using ip unlock
    9·1 answer
  • Please choose the correct answer please tell fast​
    15·1 answer
  • what could a company do if it was using a commercial wan and a vulnerability appered thst allowed attackers
    11·1 answer
  • PLEASE HELP THIS IS CONFUSING ME
    8·2 answers
  • The Backstage view is where you can see information and options pertaining to the user account and settings. How is the Backstag
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!