Á¤¼ºÈÆ
    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] Á¶È¸ : 339 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_7_8.py (±³Àç)
¡ä ´ÙÀ½±Ûlab_7_2.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
213 ¦¦❶ µµÀü¹®Á¦ 7.4 474 03-29
212    ¦¦❷ µµÀü¹®Á¦ 7.4 (¸ð¹ü ´ä¾È) 268 03-29
211 ¦¦❶ µµÀü¹®Á¦ 7.3 443 03-29
210    ¦¦❷ µµÀü¹®Á¦ 7.3 (¸ð¹ü ´ä¾È) 326 03-29
209 ¦¦❶ µµÀü¹®Á¦ 7.2 602 03-29
208    ¦¦❷ µµÀü¹®Á¦ 7.2 (¸ð¹ü ´ä¾È) 283 03-29
207 ¦¦❶ µµÀü¹®Á¦ 7.1 537 03-29
206    ¦¦❷ µµÀü¹®Á¦ 7.1 (¸ð¹ü ´ä¾È) 308 03-29
205 ¦¦❶ lch7.ipynb (¿¹Á¦ Àüü) 608 03-01
204 ¦¦❶ llab_7_6.py (±³Àç) 297 02-21
203    ¦¦❷ lab_7_6.py (ù¹øÂ° Ç׸ñÀ» ÀÌ¿ëÇÏ´Â »õ·Î¿î ¹æ¹ý) 135 05-19
202 ¦¦❶ llab_7_5.py (±³Àç) 343 02-21
201 ¦¦❶ lcode_7_14.py (±³Àç) 275 02-21
200 ¦¦❶ lcode_7_13.py (±³Àç) 313 02-21
199 ¦¦❶ llab_7_4.py (±³Àç) 289 02-21
198 ¦¦❶ lcode_7_11.py (±³Àç) 289 02-21
197    ¦¦❷ lcode_7_11_2.py (±³Àç) 306 02-21
196    ¦¦❷ lcode_7_11_1.py (±³Àç) 325 02-21
195 ¦¦❶ lcode_7_8.py (±³Àç) 308 02-21
194 ¦¦❶ llab_7_3.py (±³Àç) 339 02-21

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