Browse Source

퀴즈 튜플에서 리스트로 수정

tobby48 6 years ago
parent
commit
7e09983f59
2 changed files with 6 additions and 1 deletions
  1. 5
    0
      .pydevproject
  2. 1
    1
      src/kr/co/swh/lecture/python/scene2/Quiz2.py

+ 5
- 0
.pydevproject View File

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<?eclipse-pydev version="1.0"?><pydev_project>
3
+<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
4
+<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
5
+</pydev_project>

+ 1
- 1
src/kr/co/swh/lecture/python/scene2/Quiz2.py View File

@@ -8,7 +8,7 @@
8 8
 미나학생 점수가 81로 성적이 우수합니다.
9 9
 '''
10 10
 
11
-a = [('철수',95), ('영희',65), ('광수',77), ('미나',81)]
11
+a = [['철수',95], ['영희',65], ['광수',77], ['미나',81]]
12 12
 for b in a: 
13 13
     if b[1] < 80: continue 
14 14
     print("%s학생 점수가 %d로 성적이 우수합니다." % (b[0],b[1]))