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
Katen [24]
3 years ago
15

Write a python program that requests a word (with lowercase letters) as input and translates the word into pig latin. The rules

for translating a word into pig latin are as follows: a. If the word begins with a consonant, move the first letter to the end of the word and add ay. For instance, chip becomes hipcay. b. If the word begins with a vowel, add way to the end of the word. For instance, else becomes elseway.
Computers and Technology
2 answers:
Masteriza [31]3 years ago
4 0

Answer and Explanation:

X = input("Enter input word to be  translated to pig latin: ")

# If the word begins with a vowel, add way to the end of the word

if X[0] == "a" or "e" or "i" or "o" or "u":  

   print(X + "way")

#the other condition

#If the word begins with a consonant, move the first letter to the end of the word and add ay

else:

   print(X[1:] + X[0] + 'ay')

solmaris [256]3 years ago
3 0

Answer:ogbef

Explanation:

You might be interested in
Can you tell me what is rast
Sholpan [36]
A radioallergosorbent test is a blood test using radioimmunoassay test to detect specific IgE antibodies, to determine the substances a subject is allergic to. This is different from a skin allergy test, which determines allergy by the reaction of a person's skin to different substances.
3 0
3 years ago
Consider an unpipelined or single-stage processor design like the one discussed in slide 6 of lecture 17. At the start of a cycl
pantera1 [17]

Answer:

a. Clock Speed of Processor = 0.5 GHz

b. Cycles per Instruction (CPI) = 1 Clock per Instruction

c. Throughput = 1 billion Instruction per Second

Explanation

Given Data

Time Take to complete the single Cycle = 2000ps = 2000 x 10⁻¹²

To Find

a. Clock Speed of Processor = ?

b. Cycles per Instruction (CPI) = ?

c. Throughput = ?

Solution:

a. Clock Speed of Processor = ?

Clock Speed = 1/Time to complete the cycle

                      = 1/2000 x 10⁻¹²  Hz

                      =  0.0005 x 10¹²  Hz

                      =  0.5 x 10⁹  Hz                             as   10⁹ = 1 Giga   so,

                      = 0.5 GHz

b. Cycles per Instruction (CPI) = ?

It is mentioned that, each instruction should start at the start of the new cycle and completely processed at the end of that cycle so, we can say that Cycles per Instruction (CPI) = 1

for above mentioned processor.

c. Throughput = ?

Throughput = CPI x Clock Speed

where

CPI = 1 cycle per instruction

Clock Speed = 1 billion Instructions per Second

as

Clock Speed = 1 billion Cycles per Second

Throughput = 1 cycle per instruction x 1 billion Cycles per Second

Throughput = 1 billion Instruction per Second

                         

6 0
3 years ago
How many residues separate amino acids that are stabilized by hydrogen bonds in α helices?.
irina [24]

The numbers of residues separate amino acids that are stabilized by hydrogen bonds in α helices is  3.6 amino acid residues.

<h3>Why are amino acids called residues?</h3>

The  Amino acids are known to be compounds that are said to be called residues if there is  two or more amino acids that are known to be bond with each other.

Note that the amino group on one amino acid is one that tends to interacts with the carboxyl group and as such  form a peptide bond.

Therefore, The numbers of residues separate amino acids that are stabilized by hydrogen bonds in α helices is  3.6 amino acid residues.

Learn more about amino acids from

brainly.com/question/2526971

#SPJ1

5 0
1 year ago
Which of the following is a public location that sells Internet access? Internet café Extranet Intranet LogMeIn,
Goshia [24]

Answer:A) Internet cafe

Explanation: Internet cafe is the place that provides the internet service to the public and helps them to access the internet .These cafes can be used by the public who are travelers, people who don't have access at home etc.This internet cafe works on the basis of the hourly rate that it takes from the public.

Rest of the options are incorrect  as intranet and extranet are types of network and LogMeIn is a desktop service .thus, the correct option is option(A).

8 0
3 years ago
What leadership style involves the ideas of advice others
makvit [3.9K]
Democrat good luck dude
5 0
2 years ago
Other questions:
  • Which of the following statements is true of a database? a. It is a collection of unstructured data. b. It is accessed primarily
    14·1 answer
  • A) A cable that is mainly used in the cable television network
    11·1 answer
  • Find the reciprocal of 7/2 × 3/5<br>​
    6·1 answer
  • Q. Which protocol would best serve to authorize users to access directory services?
    8·1 answer
  • IN WHICH COUNTRY DO THEY LET YOU PLAY MINECRAFT IN SCHOOL?
    8·2 answers
  • You can perform an in-place upgrade to Windows 7 from both Windows XP and Windows Vista
    11·2 answers
  • 25 POINTS PLATO
    6·2 answers
  • Which is NOT one of the basic characteristics of life? What feature of Microsoft
    5·1 answer
  • Text,Audio and graphic is entered into the computer using
    9·1 answer
  • La estructura basica de una pagina web en Html​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!