[6일차] 제어문(반복문), 사용자 정의 함수(함수 생성, 전역변수, 지역변수)
# for문 (앞 포스터 이어서)dic1 = {'no':1, 'userid':'apple', 'name':'김사과', 'hp':'010-1111-1111'}for i in dic1: print(i, end=' ') # no userid name hp (키만 복사)print()for i in dic1.keys(): # 키만 모여있는 객체가 존재 print(i, end=' ') # no userid name hp (키만 복사)print()for i in dic1.values(): print(i, end=' ') # 1 apple 김사과 010-1111-1111 (값만 복사)print()for i in dic1: print(dic1[i], end=' ') # 1 ..
2026.05.27