Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jennyonjourney/ac3ef78b75afa32d8fe3f1a8566169e5 to your computer and use it in GitHub Desktop.
Save jennyonjourney/ac3ef78b75afa32d8fe3f1a8566169e5 to your computer and use it in GitHub Desktop.
Python - function1
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