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
How can investors receive compounding returns
ANTONII [103]
If you’ve ever had a savings account, you likely know that a few cents in interest every month barely adds up. The goal is “compounding returns,” which simply means that the interest you earn each month earns additional interest, which then earns even more interest. But although a savings account will help with that, you may be lucky enough to be able to afford a cup of coffee every 10 years or so at that rate. Instead, it’s important to find a way to invest your money in a high-interest account that will earn compounding returns.

I hope this helps you out ;)
3 0
3 years ago
Supply is a powerful force in a free market.
Greeley [361]

Answer:

Input prices, number of sellers, technology, natural and social factors, and expectations.

Explanation:

Input in prices: When the prices go up supply will fall because lower quantities will be demanded.

Number of sellers: When the number of sellers are more, it will affect sales which is supply.

Technology: This helps in making supply to be properly done. Latest technology such as waybill, email, uber drivers, dispatch via logistics companies, shipment, air cargo carriers and a lot more.

5 0
4 years ago
Read 2 more answers
An it department submits a purchase order to buy a new computer from a vendor. Which hardware lifecycle does this scenario belon
AnnZ [28]

Answer:

Purchase or Lease is the stage of the Hardware Lifecycle to which this scenario belongs to.

Explanation:

Stages of Hardware Lifecycle Management:

1. Plan

Plan is made to check which things are needed and will help us in short and long terms so, that it remains in budget and can give us more productivity.

2. Purchase or Lease

We do check whether we need to use the things for long term or short term. If long term we can buy it but, for short term we can always take it on lease.

3. Deploy & Install

New equipments are placed at required places for their usage.

4. Maintenance

We need to have maintenance service which are done by third-party companies so, that all equipments work smoothly.

5. Upgrade

We need our company to be efficient so, we do upgrade equipments like getting new version of it and to maintain that it work for long time.

6. Parts & Repair

If repairing of equipments are done it can serve for more longer time.

7. Extend

We can extend the equipments warranty period so, if any major component gets damaged it can get replaced or removed free of cost rather than spending extensive money.

8. Buyback or Trade In

We can sell the used equipments so, we can have extra money by which we have taken the work of equipment even and got price for it.

9. Dispose or Recycle

We should dispose or recycle after the time you realize it can't be used anymore or repairing it will be wastage of money. So, dispose or recycle it.

3 0
3 years ago
The research conducted by Gretta's Garden suggests that besides being able to afford plants for their homes and gardens, the onl
lisov135 [29]

Answer:

Network TV.

Explanation:

Network TV is the best option in this scenario because it is more appealing as compared to other media and people have shown more interest in this media.

7 0
3 years ago
Which of the following is NOT an argument used to determine how a shot is fired from an A. object the shot itself being instanti
Firdavs [7]
C. The color of the shot...
7 0
3 years ago
Other questions:
  • I was not supposed to upgrade my iPad to iOS 11 due to testing but it automatically did when I was charging it. Is there a way t
    11·1 answer
  • ANSWER THESE RIDDLES FOR BRAINLIEST ANSWER!!!!
    11·2 answers
  • Do anti viruses install themselves on other computers in the network
    6·1 answer
  • Which of the following is a negative impact of technology on society
    9·1 answer
  • Juan copied and pasted information from a Word document
    8·1 answer
  • _____ is a method of computing that delivers secure, private, and reliable computing experiences based on sound business practic
    7·1 answer
  • PLEASE HELP ASAP (answer is needed in Java) 70 POINTS
    15·1 answer
  • Irene is creating a wireframe of a website she is working on to show her client. In which phase of the development process is sh
    13·1 answer
  • Technician A says that a camshaft must open and close each valve at exactly the right time relative to piston position. Technici
    11·1 answer
  • Why does my wifi keep disconnecting and reconnecting?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!