14
Question MyValue
=
[]
def
Push
(
number
):
MyValue
.
append
(
number
)
print
(
number
,
"pushed to the stack."
)
Push
(
5
)
Push
(
10
)
Push
(
15
)
Output
5 pushed to the stack.
10 pushed to the stack.
15 pushed to the stack.
MyValue
=
[]
def
Push
(
number
):
MyValue
.
append
(
number
)
print
(
number
,
"pushed to the stack."
)
Push
(
5
)
Push
(
10
)
Push
(
15
)
Output
5 pushed to the stack.
10 pushed to the stack.
15 pushed to the stack.