Á¤¼ºÈÆ
    lab_7_3.py (±³Àç)
  http://itsys.hansung.ac.kr/cgi-bin/onlineTest/viewpy4AI/onlinePy4AI.cgi?source=src/py/Ch07/lab_7_3.py



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

  µî·ÏÀÏ : 2022-02-21 [01:26] Á¶È¸ : 642 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_7_8.py (±³Àç)
¡ä ´ÙÀ½±Ûlab_7_2.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
220 ¦¦❶ µµÀü¹®Á¦ 7.4 720 03-29
219    ¦¦❷ µµÀü¹®Á¦ 7.4 (¸ð¹ü ´ä¾È) ºñ°ø°³ 469 03-29
218 ¦¦❶ µµÀü¹®Á¦ 7.3 681 03-29
217    ¦¦❷ µµÀü¹®Á¦ 7.3 (¸ð¹ü ´ä¾È) ºñ°ø°³ 529 03-29
216 ¦¦❶ µµÀü¹®Á¦ 7.2 844 03-29
215    ¦¦❷ µµÀü¹®Á¦ 7.2 (¸ð¹ü ´ä¾È) ºñ°ø°³ 469 03-29
214 ¦¦❶ µµÀü¹®Á¦ 7.1 750 03-29
213    ¦¦❷ µµÀü¹®Á¦ 7.1 (¸ð¹ü ´ä¾È) ºñ°ø°³ 511 03-29
212 ¦¦❶ lch7.ipynb (¿¹Á¦ Àüü) 846 03-01
211 ¦¦❶ llab_7_6.py (±³Àç) 521 02-21
210    ¦¦❷ lab_7_6.py (ù¹ø° Ç׸ñÀ» ÀÌ¿ëÇÏ´Â »õ·Î¿î ¹æ¹ý) 263 05-19
209 ¦¦❶ llab_7_5.py (±³Àç) 689 02-21
208 ¦¦❶ lcode_7_14.py (±³Àç) 513 02-21
207 ¦¦❶ lcode_7_13.py (±³Àç) 578 02-21
206 ¦¦❶ llab_7_4.py (±³Àç) 506 02-21
205 ¦¦❶ lcode_7_11.py (±³Àç) 497 02-21
204    ¦¦❷ lcode_7_11_2.py (±³Àç) 566 02-21
203    ¦¦❷ lcode_7_11_1.py (±³Àç) 547 02-21
202 ¦¦❶ lcode_7_8.py (±³Àç) 554 02-21
201 ¦¦❶ llab_7_3.py (±³Àç) 642 02-21

[1][2][3][4][5][6][7][8][9][10]-[Next][19]