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.
Answer:
#include <stdio.h>
int main() {
const float square_feet;
printf("Enter area in square feets: ");
// reads and stores input area
scanf("%f", &square_feet);
float acres= square_feet/43560;
// displays area in acres
printf("area in acres is: %.2f", acres);
return 0;
}
Explanation:
code is in C language.
double slashed '//' lines are not code but just comments to understand what it mean in code or for explanation purpose
Answer:
ngl why would i know this
Explanation: