Á¤¼ºÈÆ
    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] Á¶È¸ : 797 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_7_11_1.py (±³Àç)
¡ä ´ÙÀ½±Ûlab_7_3.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
201 ¦¦❶ llab_7_3.py (±³Àç) 797 02-21
200 ¦¦❶ llab_7_2.py (±³Àç) 720 02-21
199 ¦¦❶ llab_7_1.py (±³Àç) 678 02-21
198 (6Àå) ÇÔ¼ö·Î ÀÏ󸮸¦ Â¥ÀÓ»õÀÖ°Ô ÇÏÀÚ 949 02-19
197 ¦¦❶ µµÀü¹®Á¦ 6.4 1310 04-04
196    ¦¦❷ µµÀü¹®Á¦ 6.4 (¸ð¹ü ´ä¾È) 737 04-04
195 ¦¦❶ µµÀü¹®Á¦ 6.3 995 04-04
194    ¦¦❷ µµÀü¹®Á¦ 6.3 (¸ð¹ü ´ä¾È) 1005 04-04
193 ¦¦❶ µµÀü¹®Á¦ 6.2 921 04-03
192    ¦¦❷ µµÀü¹®Á¦ 6.2 (¸ð¹ü ´ä¾È) 759 04-03
191 ¦¦❶ µµÀü¹®Á¦ 6.1 925 04-03
190    ¦¦❷ µµÀü¹®Á¦ 6.1 (¸ð¹ü ´ä¾È) 685 04-03
189 ¦¦❶ lch6.ipynb (¿¹Á¦ Àüü) 1207 03-01
188 ¦¦❶ lcode_6_14.py (±³Àç) 609 02-21
187    ¦¦❷ lcode_6_14_4.py (±³Àç) 667 02-21
186    ¦¦❷ lcode_6_14_3.py (±³Àç) 1095 02-21
185    ¦¦❷ lcode_6_14_2.py (±³Àç) 667 02-21
184    ¦¦❷ lcode_6_14_1.py (±³Àç) 664 02-21
183 ¦¦❶ lmy_func.py (±³Àç) 748 02-21
182 ¦¦❶ lcode_6_13.py (±³Àç) 591 02-21

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