Created
March 25, 2018 01:39
-
-
Save jennyonjourney/ac3ef78b75afa32d8fe3f1a8566169e5 to your computer and use it in GitHub Desktop.
Python - function1
This file contains 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 fn1(): #매개변수x,리턴x | |
print("fn1()") | |
def fn2(a,b,c): #매개변수o,리턴x | |
print("fn2():", a,b,c, a+b+c) | |
def fn3(): #매개변수x,리턴o | |
print("fn3():") | |
return 100, 200, 300 | |
def fn4(a,b): | |
print("fn4():", a, b) | |
return a*b | |
a=fn1() | |
b=fn2(10,20,30) | |
c=fn3() | |
print(a) | |
print(b) | |
print(c) | |
print(fn4(5,6)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment