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
TensorFlow and Pytorch are examples of which type of machine learning platform?
densk [106]
Both TensorFlow and PyTorch are examples of a robust machine learning library.

4 0
2 years ago
In an average case involving an array of n elements, how many times will a sequential search function have to read the array to
Strike441 [17]

Answer:

n/2 times

Explanation:

The number of times  a sequential search function will have to read the array in other to locate a specific value is : n/2 times

In an average case to locate a specific value using the a sequential/linear search the elements of the array will be searched in other to get a specific value and this will take n/2 number of attempts/times.

a sequential search is used to search for a value contained in a data set that has a linear relationship with other values contained in the data set

3 0
4 years ago
What are some advantages and disadvantages to flooded coolers?
aliya0001 [1]
Advantage is that the refrigerant distrubing in the evaporator will reduce and disadvantage is that the distribution of evaporator will increase
5 0
4 years ago
ravi met few peoples in a party and was mixing up well those wearing expensives clothing and fair complexion . which factors are
Lady_Fox [76]

The factor that influenced Ravi's perspective towards the people can be referred to as <u>Visual perspective.</u>

<u></u>

<h3>What do you mean by Visual perspective?</h3>

Visual perception or sight can be defined as the ability to interpret the encircling surroundings via photopic vision, color vision, scotopic vision, and mesopic vision, the usage of light withinside the visible spectrum meditated through items withinside the surroundings.

It also means the ability to see the world through others' perspectives, which takes into account what and how they see it.

Thus, The factor that influenced Ravi's perspective towards the people can be referred to as <u>Visual perspective.</u>

<u></u>

Learn more about Visual perspective:

brainly.com/question/14956318

#SPJ1

<u></u>

6 0
2 years ago
HELP ASAP!!!
Crazy boy [7]
The answer is a C..ur welcome
5 0
4 years ago
Other questions:
  • Write three statements to print the first three elements of array runTimes. Follow each statement with a newline. Ex: If runTime
    12·1 answer
  • Which is the MOST efficient means of disentangling passengers from a wrecked​ vehicle? A. Remove the steering wheel and column.
    10·1 answer
  • Purpose of this program:
    12·1 answer
  • Suppose that we have a set of activities to schedule among a large number of lecture halls, where any activity can take place in
    8·1 answer
  • 1.   Which of the following is an example of a primary cost of an accident or injury?
    5·2 answers
  • What was the first e-commerce service?
    10·1 answer
  • Write a method called sum with a while loop that adds up all numbers between two numbers a and b. The values for a and b can be
    11·2 answers
  • Which type of CPU instruction performs arithmetic calculations and stores the results in memory?
    14·2 answers
  • What is the main difference between a fileserver and network attached storage (NAS)?
    10·1 answer
  • Which of the following is NOT an example of soft skill?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!