[파워 유저를 위한 파이썬express] 6장 이론 연습문제 Exercise 솔루션 답지
1. values = [ 1, 2, 3, 4, 5, 6] (a) 2 (b) 6 (c) [2, 3] (d) 6 (e) 4 (f) 6 (g) 21 3. [40, 50, 60] 5. [50, 30, 10] 7. zz 9. [2, 4, 6, 8, 10, 12, 14] 11. ①, ④ 13. myList = [x * x for x in myList] 15. 25 17. (a) [1, 2, 3, 4, 5, 6] (b) 1, 2, 3, 1, 2, 3] (c ) False 19. list1 = [5, 10, 15, 20, 25, 50, 20] print(list1) index = list1.index(20) list1[index] = 200 print(list1)
2023. 1. 9.