写出计算结果python

#1
s = 0
for i in range(1, 11):
     if i % 2 == 0:
        continue
     if i % 10 == 5:
        break
     s = s + i
print(s)  # 4 =1+3
#2
def test(f, a, b): 
    print(f(a, b))
test((lambda x,y: x ** 3 + y), 2, 3) #out 11
#3
def my_power(x, n = 2):
    s = 1
    while n > 0:
      n -= 1
      s = s * x
    return s
print(my_power(-3))
print(my_power(3, 3))

'''分别对该函数传递参数,调用my_power(-3)和my_power(3, 3)后运行结果分别是什么?
9和27
-9和27
9和-27
-9和-27
'''