함수(03 09)
1-3 반환값이 있는 함수 def 함수명(변수1, 변수2, …): 함수가 호출되면 실행할 문장 … return 값 # 호출 함수명(값1, 값2, …) def func4(): print(“hello python”) a = func4() print(f’a에 저장된 값은: {a}’) a에 저장된 값은: None # return 값이 없기 때문에 None이 나오게 된다. def func5(): return ‘🎁’ present = func5() print(f”present에 저장된 값은: {present}”) # … Read more