summaryrefslogtreecommitdiff
path: root/python/en.py
blob: 33453a91e60a643d660542872cf7c631fd96b883 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# coding=utf-8

name = 'Python'
description = 'Introductory Python course.'


general_msg = {
    'error_head' : '''\
''',

    'general_exception': '''\
''',

    'name_error' : '''\
''',

    'type_error': '''\
''',

    'eof_error':'''\
''',

    'timed_out':'''\
'''
}

hint = {
    'no_hint': '''\
<p>No hint available, sorry!</p>
''',

    'test_results': '''\
<p>Your code passed [%=passed%] / [%=total%] tests.</p>
''',

    'syntax_error': '''\
<p>Your code contains a syntax error in line [%=lineno%]:</p>
<pre>
[%=message%]
</pre>
''',

    'system_error': ['''\
'''],

    'problematic_test_case': ['''\
'''],

    'no_func_name': ['''\
'''],

    'name_error' : [general_msg['error_head'],
                    general_msg['general_exception'],
                    general_msg['name_error']],

    'type_error' : [general_msg['error_head'],
                    general_msg['general_exception'],
                    general_msg['type_error']],

    'error' : [general_msg['error_head'], general_msg['general_exception']],

    'eof_error' : [general_msg['eof_error']],

    'timed_out' : [general_msg['timed_out']]
}