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
Darina [25.2K]
3 years ago
11

python Assume letters A, E, I, O, and U as the vowels. Write a program that prompts the user to enter a string and displays the

number of vowels and consonants in the string.
Computers and Technology
1 answer:
Roman55 [17]3 years ago
8 0

Answer:

vowels = 0

consonants = 0

string = input("Enter string: ")

for x in string:

   if x.isalpha():

       if x in "AEIOU":

           vowels += 1

       else:

           consonants += 1

print("Vowels =",vowels)

print("Consonants =",consonants)

Explanation:

You might be interested in
Write a pseudocode to add the first 100 even numbers.
Allushta [10]

Even numbers are numbers whigh are divisible by 2. Therefore, the first even number is 2. A pseudocode which adds the first 100 even numbers can be written thus :

counter = 0

sum = 0

interval = 2

while counter < 100 :

sum = sum + interval

interval += 2

counter +=1

print(sum)

  • A counter takes count of the number of values summed

  • Initializes a variable which holds the sum of even values

  • Since even numbers are divisible by 2; every factor ; increase every added value by 2

  • The program ends once counter is 100

Learn more : brainly.com/question/25327166

6 0
2 years ago
A server can be added to Server Manager by which of the following methods?
solmaris [256]
C. Importing a text file.  Server manager is where you can remotely administer your servers. Answer a. isn't true because you don't need a web server running to be remotely managed. b. Isn't true because wscript is old technology and microsoft would most likely use powershell, and DHCP is used to hand out IP addresses.
3 0
3 years ago
A _____ is a collection of (potentially) thousands of computers that can respond to requests over a network
Rom4ik [11]

Answer:

server or supercomputer

Explanation:

5 0
2 years ago
Joanna accidentally leaned on her keyboard and repeatedly typed the letter z. How can she fix this mistake?
Brut [27]

Answer:

just press delete

Explanation:

5 0
3 years ago
Read 2 more answers
_______________ provides options for getting access to your old password or resetting the account to a temporary password; users
gtnhenbr [62]

Answer:

account recovery

Explanation:

account recovery, provides options for getting access to your old password or resetting the account to a temporary password; users will change to a permanent password upon first login.

3 0
2 years ago
Other questions:
  • Give an example of Digital Convergence.
    5·1 answer
  • Name this<br><br>The feature allows you to add text/picture in the background of the document. ​
    11·1 answer
  • Data are sent through a network on bundles called _______. select one:
    8·2 answers
  • When you expand the virtual size of a game, what do you create?
    7·1 answer
  • When max() function is used on lists of words, what does max() find? For example:
    13·1 answer
  • The data type of 17.3 should be ________________.
    12·2 answers
  • As a student, how will you avoid those problems/case in the community?​
    14·2 answers
  • Which of the following characterizes how an enabled security program might react to a new program installation on a computer sys
    7·2 answers
  • What is e banking effects
    7·1 answer
  • The software/system that helps make sure the retail firm doesn't have a stockout is?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!