[파워 유저를 위한 파이썬express] 7장 프로그래밍 programming 솔루션 답지
1. def unique_sort(lst): return sorted(set(lst)) lst = [80, 20, 20, 30, 60, 30] print("주어진 리스트", lst) newLst = unique_sort(lst) print("정렬된 리스트", newLst) 3. d = {"Apple": 1, "Banana": 2, "Grape": 3} for key, value in d.items(): print(key, "-> ", d[key]) 5. myDict = {"옷": 100, "컴퓨터": 2000, "모니터": 320} print("총합계=", sum(myDict.values())) 7. mydict = {} for i in range(2): date = input("날짜를 입력하시오: ")..
2023. 1. 8.