본문 바로가기
언어/Python문법

[python] 함수 요약

by ErrorMin 2022. 10. 27.
#===걍 함수===
 
def names():
    print("hi")
names()
#---

def test0(num1,num2,num3):
    print(num1 * num2 * num3)

test0(7, 3, 5)

#---
def test(x):
    return x * x
print(test(3))
#---
def test2(y):
    return y * y

c = test2(4)
print(c)