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



1
2
3
4
5
6
7
8
9
10
11
12
13
#
# µû¶óÇϸ砹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020)
# 6.7 ¿©·¯ °³ÀÇ °ªÀ» ³Ñ°ÜÁÖ°í ¿©·¯ °³ÀÇ °ªÀ» µ¹·Á¹ÞÀÚ, 152ÂÊ
#
def sort_num(n1, n2):  # 2°³ÀÇ °ªÀ» ¹Þ¾Æ¿À´Â ÇÔ¼ö
    if n1 < n2:
        return n1, n2  # n1ÀÌ ´õ ÀÛÀ¸¸é n1, n2 ¼ø¼­·Î ¹Ýȯ
    else:
        return n2, n1  # n2°¡ ´õ ÀÛÀ¸¸é n2, n1 ¼ø¼­·Î ¹Ýȯ
 
 
print(sort_num(110210))  # 110°ú 210À» ÇÔ¼öÀÇ ÀÎÀڷΠÀü´ÞÇÏ°í ¹ÝȯµÇ´Â °ªÀ» Ãâ·Â
print(sort_num(210080))
cs

  µî·ÏÀÏ : 2022-02-20 [23:50] Á¶È¸ : 771 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_6_7.py (±³Àç)
¡ä ´ÙÀ½±Ûcode_6_7_1.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
161    ¦¦❷ lcode_6_7_2.py (±³Àç) 731 02-20
160    ¦¦❷ lcode_6_7_1.py (±³Àç) 771 02-20
159 ¦¦❶ lcode_6_6.py (±³Àç) 596 02-20
158    ¦¦❷ lcode_6_6_2.py (±³Àç) 601 02-20
157    ¦¦❷ lcode_6_6_1.py (±³Àç) 654 02-20
156 ¦¦❶ lcode_6_5.py (±³Àç) 607 02-20
155 ¦¦❶ lcode_6_4.py (±³Àç) 668 02-20
154 ¦¦❶ lcode_6_3.py (±³Àç) 613 02-20
153    ¦¦❷ lcode_6_3_2.py (±³Àç) 593 02-20
152    ¦¦❷ lcode_6_3_1.py (±³Àç) 907 02-20
151 ¦¦❶ lcode_6_2.py (±³Àç) 942 02-20
150 (5Àå) ¿©·¯ ¹ø ¹Ýº¹ÇÏ´Â ÀÏÀ» ÇÏÀÚ 848 02-19
149 ¦¦❶ µµÀü¹®Á¦ 5.12 926 03-26
148    ¦¦❷ µµÀü¹®Á¦ 5.12 (¸ð¹ü ´ä¾È) 715 03-26
147 ¦¦❶ µµÀü¹®Á¦ 5.11 760 03-26
146    ¦¦❷ µµÀü¹®Á¦ 5.11 (¸ð¹ü ´ä¾È) 615 03-26
145 ¦¦❶ µµÀü¹®Á¦ 5.10 952 03-26
144    ¦¦❷ µµÀü¹®Á¦ 5.10 (¸ð¹ü ´ä¾È) 601 03-26
143 ¦¦❶ µµÀü¹®Á¦ 5.9 765 03-26
142    ¦¦❷ µµÀü¹®Á¦ 5.9 (¸ð¹ü ´ä¾È) 643 03-26

[1] [Prev]-[11][12][13][14][15][16][17][18][19][20]