Write a function Push() which takes number as argument and add in a stack "MyValue".
2 Likes
MyValue = [] def Push(number): MyValue.append(number) print(number, "pushed to the stack.") Push(5) Push(10) Push(15)
5 pushed to the stack. 10 pushed to the stack. 15 pushed to the stack.
Answered By
What is the use of "w" in file handling?
Rewrite the following SQL statement after correcting the error(s). Underline the corrections made.
INSERT IN STUDENT (RNO, MARKS) VALUE (5, 78.5);
Write the output of the following code:
for i in range(5): print(i)
Expand the following:
(a) LIFO
(b) FIFO