function呼び出し
def sample1(a, b, c):
s = a + b - c
print(a)
if a == 0:
print(b)
else:
print(c)
sample1(1, 1, 2)
結果
1
2
kinkun's blog
function呼び出し
def sample1(a, b, c):
s = a + b - c
print(a)
if a == 0:
print(b)
else:
print(c)
sample1(1, 1, 2)
結果
1
2