3, 4
Python
import math
a,b=map(int, input('Input a, b:').split())
s=0
for t in range(a, b+1):
s+=math.exp(t)
print(s)
p=1
for k in range(0, b+1):
p*=3**k
print(p)
3, 4
Python
import math
a,b=map(int, input('Input a, b:').split())
s=0
for t in range(a, b+1):
s+=math.exp(t)
print(s)
p=1
for k in range(0, b+1):
p*=3**k
print(p)