function.py
#say_hello() 関数を定義する前に呼び出すとエラーになる
def say_hello():
print('Hi!')
def add(a, b):
return a+b
say_hello()
print(add(10,20))
出力結果
Hi!
30
Go to list of users who liked
More than 3 years have passed since last update.
#say_hello() 関数を定義する前に呼び出すとエラーになる
def say_hello():
print('Hi!')
def add(a, b):
return a+b
say_hello()
print(add(10,20))
出力結果
Hi!
30
Register as a new user and use Qiita more conveniently
Go to list of users who liked