#함수 : 어떤 기능을 실행하는 코드 또는 코드의 모임
#내장 함수 : input(), print(), len(), int(), str() ...

#내가 만드는 함수(사용자 정의 함수)
'''
def 함수이름(매개변수):
    함수를 불렀을 때 실행할 명령들
'''

def 라면_만들기():
    print('냄비에 물을 붓는다')
    print('물을 끓인다')
    print('스프를 넣는다')
    print('면을 넣는다')
    print('계란을 넣는다')
    print('그릇에 담는다')

라면_만들기()
라면_만들기()

#매개변수 : 함수 안에서 사용하는 변수
def 안녕(name):
    print(name + ', 안녕!')
    
안녕('시헌아')
안녕('담미야')
안녕('정윤아')
안녕('현지야')

def total(a, b):
    print(a + b)

total(13, 25)
total(1323, 1234546)


print('----문제1----')
def mul(a,b,c):
    print(a * b * c)

mul(15,4,8)




Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: