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

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

#함수 정의
def 라면_만들기():
    print('냄비에 물을 넣는다')
    print('물을 끓인다')
    print('면과 스프를 넣는다')
    print('계란을 넣는다')
    print('맛있게 먹는다')

#함수 실행
#함수이름()
라면_만들기()
print('------')
라면_만들기()

def printLine():
    print('-------------')

printLine()

print('----문제1----')
def printStar():
    print('**********')

printStar()

print('----문제2----')
printStar()
print('이름 : 홍길동')
printStar()














Embed on website

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