SW 기능/python
python 기본 문법
자료형 print(type('a')) # str print(type('안뇽')) #str print(type(1)) #int print(type(False)) #bool print(type(3.14)) #float # 자료구조 변경 menu = {'커피','우유','쥬스'} # 세트 중괄호 print(menu, type(menu)) menu = list(menu) # 리스트 대괄호 print(menu, type(menu)) menu = tuple(menu) # 튜플 소괄호 print(menu, type(menu)) menu = set(menu) # 세트 print(menu, type(menu)) 연산자 print((1 < 2) & (2 < 3)) print(1 < 2 and 2 < 3) print((1 ..
2024. 3. 26. 22:29