This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Noreturn(A,B): | |
print("이 함수는 리턴값이 존재하지 않습니다.") | |
return #이 리턴구문은 있어도되고 없어도 됩니다. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def F(A,B): | |
A+=1 | |
B+=1 | |
return A,B | |
ret = F(1,2) | |
A,B = F(1,2) | |
print(ret) | |
print(A,B) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sum(A,B): | |
print('함수가 수행할 문장들') | |
return A+B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Noarg(): | |
print("인자가 없는 함수") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def functionName(arg1,arg2): | |
print(arg1,arg2) | |
print("수행할 문장2") | |
print("여기는 함수가 수행할 문장이 아닙니다.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def functionName(arg1,arg2): | |
print(arg1,arg2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def functionName(test): | |
print("HI") |