Answer:
def normalize(text):
text = text.lower()
text = text.split()
return text
Explanation:
The functiinfunction is provided with an input text when called upon, then it changes every character in the text into lower case and split each word with a space.
Answer:
Baje las persianas o cierre las cortinas en los días calurosos, para mantener la casa fresca y reducir el uso de ventiladores eléctricos o aire acondicionado. Deje que la ropa se seque naturalmente. Mantenga las tapas en las ollas cuando cocine para ahorrar energía. Use baterias recargables.
Answer:
The answer is "Option A".
Explanation:
In the given code an integer array "x" is defined, that stores some elements and another integer variable "a" is declared, that holds a value that is "10". In this code a conditional statement is defined, which checks array element value, in if block element of array that position is 2 is greater then the element of array that position is 5.if this condition is true, so variable a value is change that is equal to 5. In else block if the above condition is not true so the value of a variable is equal to 8, and another options is wrong that can be described as follows:
- In option B, The given condition is not false, that's why it is not correct.
- In option C, The value of variable a is changed when condition is true or false, that's why it is not correct.
- In option D, It is wrong because we can compare array elements.
Explanation:
The difference between entry condition loop is and exit - condition loop is that the entry condition loops first checks the condition to enter the loop body if the condition true then the loop body is executed otherwise loop body is not executed while the exit-condition loops first executes the loop body and then the condition for the loop is checked.
There are three loops in C that are as following:-
- For
- While
- Do While
Among these three loops While and For loops are entry condition loops and Do While loop is exit condition loop.
For example:-
for(int i=0;i<10;i++)
{
printf("%s","John Doe\n");
}
If the initial value of i should have been 10 then loop body didn't had executed.
int i=0;
while(i<4)
{
printf("%s","John Doe\n");
}
If you try to run this while loop nothing will print on the screen because the condition is false.So the compiler will not enter the loop body and will skip over it.
int i=5;
do{
printf("%s","John Doe\n");
}while(i<4);
Even if the condition is false.You will see that the John doe have been printed one time on the screen because first the body is executed then the condition is checked.