Answer:
li=list(map(str,input().strip().split()))#taking input of the string.
#swapping first and last element.
temp=li[0]
li[0]=li[-1]
li[-1]=temp
print(li)#printing the list.
Explanation:
I have taken the list li for taking the input of strings.Then after that swapping first and last element of the list.Then printing the list.
Answer:
- #include <iostream>
- using namespace std;
- int main() {
- int number =5;
- if (number>=0&& number <=100){
- cout<<"passed.\n";
- }
- else{
- cout<<"failed.\n";
- }
- return 0;
- }
Explanation:
There where multiple errors in the code given in the questions
Line 1: Missing <iostream>
Line 5: The comparison operator was wrong correction is highlighted
Line 12 Missing closing brace for the main function
All the errors have been fixed and the code above compiles
Answer:
<em>I </em><em>think </em><em>the </em><em>answer </em><em>is </em><em>a </em><em>bullet.</em>
<em>Hope </em><em>this </em><em>helps</em>
D. Because if you show the owner the graph he'Il be impressed so he'll obviously want proof so show him the other store owners success quotes and then for him to trust you, Give him a trial of the product