fork download
  1. from tkinter import *
  2. window = Tk()
  3.  
  4. label1 = Label(window, text = "하루 30분 이상 책을 읽는다.")
  5.  
  6. def me Func() :
  7. if var get() == 1:
  8. label1.configure(text = "매우그렇다")
  9. elif var get() == 2:
  10. label1.configure(text = "대체로 그렇다")
  11. elif var get() == 3:
  12. label1.configure(text = "보통이다")
  13. elif var get() == 4:
  14. label1.configure(text = "별로 그렇지 않다")
  15. else:
  16. label1.configure(text = "전혀 그렇지 않다")
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "./prog.py", line 6
    def me Func() :
              ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError:   File "./prog.py", line 6
    def me Func() :
              ^
SyntaxError: invalid syntax

stdout
Standard output is empty