1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 7-3 µµ½ÃÀÇ Àα¸ ÀÚ·á¿¡ ´ëÇÑ ½½¶óÀ̽ÌÀ» Çغ¸ÀÚ, 180ÂÊ # # ´ÙÀ½°ú °°Àº ¸®½ºÆ®°¡ »ý¼ºµÇ¾î ÀÖ´Ù. population = ["Seoul", 9765, "Busan", 3441, "Incheon", 2954] print('¼¿ï Àα¸:', population[1]) # ¹®Á¦ 1) print('ÀÎõ Àα¸:', population[-1]) # ¹®Á¦ 2) cities = population[0::2] # ¹®Á¦ 3) print('µµ½Ã ¸®½ºÆ®:', cities) pops = population[1::2] # ¹®Á¦ 4) print('Àα¸ÀÇ ÇÕ:', sum(pops)) | cs |