Answer:
Following are the program in the Python Programming Language.
#define function
def Transfer(S, T):
#set for loop
for i in range(len(S)):
#append in the list
T.append(S.pop())
#return the value of the list
return T
#set list type variable
S = ["a","b","c","d"]
#print the values of the list
print(S)
#set the list empty type variable
T=[]
#call the function
T = Transfer(S, T)
#print the value of T
print(T)
<u>Output:</u>
['a', 'b', 'c', 'd']
['d', 'c', 'b', 'a']
Explanation:
Here, we define the function "Transfer()" in which we pass two list type arguments "S" and "T".
- Set the for loop to append the values in the list.
- Then, we append the value of the variable "S" in the variable "T".
- Return the value of the list variable "T" and close the function.
- Then, set the list data type variable "S" and initialize the elements in it and print that variable.
- Finally, we set the empty list type variable "T" and store the return value of the function "Transfer()" in the variable "T" then, print the value of the variable "T".
Answer:
The common reason to invest in cryptocurrency is the desire for a reliable, long-term store of value.
Explanation:
Answer:
ms word can help you to writer and print
ur document and make u more attractive
Explanation:
a
Answer:
There should be a little icon at the bottom of your question box/answer box. It looks like a paper clip. click it and boom
Explanation:
Answer:
#include <iostream>
using namespace std;
int main()
{
int cookies;
cin >> cookies;
cout << "The calorie consumption is: " << cookies * 142 << endl;
return 0;
}
Explanation:
First line: include basic library of C++(input and output).
using namespace std;
Says to compiler we are using std.
int main() Main function
int cookies, cookies variable, of int type
cin >> cookies
get the number of the cookies from user
cout Print the text and calories(one cookie have 142 calories)
Have a nice day ;)