repl.it
Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
#dont use these 2 
def add_last(L,I):
  a,b =L.pop(),I.pop()
  return a + b
def mult_last(L,I):
  a,b=L.pop(),I.pop()
  return a * b 
S = [1,2]
T = [3,4]
print(add_last(S,T))
print(mult_last(S,T))
Fetching token
?