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
baherus [9]
3 years ago
15

Your program Assignment Write a program that reads a sentence as input and converts each word to "Pig Latin". In one version of

Pig Latin, you convert a word by removing the first letter, placing that letter at the end of the word, and then appending "ay" to the word. Here is an Example: English: I SLEPT MOST OF THE NIGHT Pig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY

Computers and Technology
1 answer:
xxTIMURxx [149]3 years ago
5 0

Answer:

theSentence = input('Enter sentence: ')

theSentence = theSentence.split()

sentence_split_list =[]

for word in theSentence:

  sentence_split_list.append(word[1:]+word[0]+'ay')

sentence_split_list = ' '.join(sentence_split_list)

print(sentence_split_list)

Explanation:

Using the input function in python Programming language, the user is prompted to enter a sentence. The sentence is splited and and a new list is created with this statements;

theSentence = theSentence.split()

sentence_split_list =[ ]

In this way every word in the sentence becomes an element in this list and individual operations can be carried out on them

Using the append method and list slicing in the for loop, every word in the sentence is converted to a PIG LATIN

The attached screenshot shows the code and output.

You might be interested in
In the lab, you created a Group Policy Objects Report and a Resultant Set of Policy Report that can be used to __________ the gr
vekshin1
Regroup i think that is the answer

6 0
4 years ago
The process of __________ encourages members to accept responsibility for the outcomes of a group and for changing the style in
soldier1979 [14.2K]

Answer:

The correct answer to the following question will be Option B (Interpersonal feedback).

Explanation:

  • Interpersonal feedback seems to be a mechanism under which someone talks. Individuals deliver a message regarding their sensations and expectations of actions by another.
  • It encourages employees to take obligation for a group's results and to change the look they correspond to many other people in.

Therefore, Interpersonal feedback is the right answer.

8 0
3 years ago
Which of these actions would NOT help you organize data efficiently?
Ilya [14]
The answer is Storing files on your desktop so that you can locate them easily
Hope this helps! :)
3 0
3 years ago
When visiting a museum Liam takes a photo of a painting with a smartphone which stores to image file. Which of the folllowing be
Maslowich

Answer: D. The phone can represent the photo in either digital or analog formats depending on the sampling technique that is used

Explanation:

Photos can either come out as analog or digital with digital formats having better overall quality overall. Digital photos are taken with digital cameras and so use electronic detectors while analog photography uses chemical processes.

The thing about photos taken by smartphones is that they can be represented as either digital or analog formats. It simply depends on the sampling techniques used.

5 0
3 years ago
Within program menus, some menu items have an arrow next to them. What will open if you click on that command?
hodyreva [135]
The answer is most probably a subemenu
4 0
4 years ago
Read 2 more answers
Other questions:
  • Helps locate Web pages
    7·1 answer
  • We all interact with various information systems every day: at the grocery store, at work, at school, even in our cars (at least
    11·1 answer
  • Which of the following statements about these signs is true?
    13·1 answer
  • Why should social security numbers never be given over the telephone?
    5·1 answer
  • Which statement accurately compares the restart at 1 and continue numbering featured of word
    15·2 answers
  • Sketch f(x) = 5x2 - 20 labelling any intercepts.​
    13·1 answer
  • What information is used in a communication between two system
    10·1 answer
  • CSS At-rules provide a way for designers to define "if this, then that" scenarios.
    8·1 answer
  • Write an algorithm to calculate the average<br> value of array of integer elements
    13·1 answer
  • What information most likely presents a security risk on your personal
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!