정보처리기사 Python 문법 정리
print(), end, sepx = 3y = 4print("x = {}, y = {}".format(x, y)) # 변수 출력# x = 3, y = 4# 여러 값 출력 시 값들 사이에 공백이 출력print("a", "b", "c")# a b c# end, print문 출력시 맨 뒤에 붙는 문자print("a", "b", "c", end="@@")# a b c@@# sep, 출력시 문자 값 사이에 붙는 문자print("000", "0000", "0000", sep="-")# 000-0000-0000 len()# len(), 문자열, 리스트, 튜플, 딕셔너리 등의 길이를 반환str = "abcd"list = [1,2,3,4,5]print(len(str))# 4print(len(list))# 5 for문# ..