Á¤¼ºÈÆ
    µµÀü¹®Á¦ 7.5 (¸ð¹ü ´ä¾È)



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# µû¶óÇϸ砹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020)
# LAB 7-4 ¿À´ÃÀÇ ¸í¾ðÀ» °ñ¶óÁִ ±â´ÉÀ» ¸¸µéÀÚ, 187ÂÊ
#
import random 
 
express = [] 
express.append("1 + 2"
express.append("341 - 154"
express.append("514 * 516"
express.append("516 / 4"
express.append("5151 + 1541")
express.append("65411 - 65156"
express.append("12345679 * 81"
express.append("142857 * 7"
express.append("10761 - 9999"
express.append("1577 - 1577"
 
print("############################"
print("#    ¿À´ÃÀÇ    ¼öÇй®Á¦    #"
print("############################"
print(""
dailyQuiz = random.choice(express) 
print(dailyQuiz, '=', eval(dailyQuiz))
cs


Ãß°¡ 1)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import random 
 
express = ["1 + 2","341 - 154","514 * 516","516 / 4","5151 + 1541",
           "65411 - 65156","12345679 * 81","142857 * 7","10761 - 9999","1577 - 1577"
 
print("############################"
print("#    ¿À´ÃÀÇ    ¼öÇй®Á¦    #"
print("############################"
print(""
dailyQuiz = random.choice(express) 
solution = eval(dailyQuiz)
while (True) :
    print(dailyQuiz, '= ', end="")
    answer = int(input())
    if answer == solution :
        print("Àß ¸ÂÃß¾ú½À´Ï´Ù.")
        break
    else :
        print("Ʋ·È½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇϼ¼¿ä.")
cs


Ãß°¡ 2)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import random 
 
express = ["1 + 2","341 - 154","514 * 516","516 / 4","5151 + 1541",
           "65411 - 65156","12345679 * 81","142857 * 7","10761 - 9999","1577 - 1577"
 
print("############################"
print("#    ¿À´ÃÀÇ    ¼öÇй®Á¦    #"
print("############################"
print(""
 
while (True) :
    dailyQuiz = random.choice(express) 
    solution = eval(dailyQuiz)
    while (True) :
        print(dailyQuiz, '= ', end="")
        answer = int(input())
        if answer == solution :
            print("Àß ¸ÂÃß¾ú½À´Ï´Ù.")
            break
        else :
            print("Ʋ·È½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇϼ¼¿ä.")
    print("¶Ç ÇϽðڽÀ´Ï±î? (yes/no):",end='')
    answer_continue = input()
    if answer_continue == "yes" :
        continue;
    else :
        break
cs

 

  µî·ÏÀÏ : 2022-03-29 [14:09] Á¶È¸ : 847 ´Ù¿î : 0   
 
¡â ÀÌÀü±ÛµµÀü¹®Á¦ 7.5
¡ä ´ÙÀ½±ÛµµÀü¹®Á¦ 7.4
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
Anaconda3 ¼³Ä¡
ColabTurtlePlus
½Ç½À ¸ñ·Ï
Colab ½Ç½À
½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
221    ¦¦❷ µµÀü¹®Á¦ 7.5 (¸ð¹ü ´ä¾È) 847 03-29
220 ¦¦❶ µµÀü¹®Á¦ 7.4 940 03-29
219    ¦¦❷ µµÀü¹®Á¦ 7.4 (¸ð¹ü ´ä¾È) 602 03-29
218 ¦¦❶ µµÀü¹®Á¦ 7.3 854 03-29
217    ¦¦❷ µµÀü¹®Á¦ 7.3 (¸ð¹ü ´ä¾È) 695 03-29
216 ¦¦❶ µµÀü¹®Á¦ 7.2 1055 03-29
215    ¦¦❷ µµÀü¹®Á¦ 7.2 (¸ð¹ü ´ä¾È) 626 03-29
214 ¦¦❶ µµÀü¹®Á¦ 7.1 960 03-29
213    ¦¦❷ µµÀü¹®Á¦ 7.1 (¸ð¹ü ´ä¾È) 675 03-29
212 ¦¦❶ lch7.ipynb (¿¹Á¦ Àüü) 1008 03-01
211 ¦¦❶ llab_7_6.py (±³Àç) 677 02-21
210    ¦¦❷ lab_7_6.py (ù¹ø° Ç׸ñÀ» ÀÌ¿ëÇÏ´Â »õ·Î¿î ¹æ¹ý) 418 05-19
209 ¦¦❶ llab_7_5.py (±³Àç) 917 02-21
208 ¦¦❶ lcode_7_14.py (±³Àç) 671 02-21
207 ¦¦❶ lcode_7_13.py (±³Àç) 734 02-21
206 ¦¦❶ llab_7_4.py (±³Àç) 661 02-21
205 ¦¦❶ lcode_7_11.py (±³Àç) 661 02-21
204    ¦¦❷ lcode_7_11_2.py (±³Àç) 745 02-21
203    ¦¦❷ lcode_7_11_1.py (±³Àç) 719 02-21
202 ¦¦❶ lcode_7_8.py (±³Àç) 774 02-21

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