forked from hcientist/OnlinePythonTutor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathraw_input_py3.golden
More file actions
44 lines (44 loc) · 1.02 KB
/
raw_input_py3.golden
File metadata and controls
44 lines (44 loc) · 1.02 KB
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
{
"code": "# In Python 3, raw_input is called input\nprefix = \"Hello \"\n\nn1 = input(\"Enter your name\")\n\nn2 = input(\"Enter another name\")\n\nres = prefix + n1 + \" and \" + n2\nprint(res)\n",
"trace": [
{
"ordered_globals": [],
"stdout": "",
"func_name": "<module>",
"stack_to_render": [],
"globals": {},
"heap": {},
"line": 2,
"event": "step_line"
},
{
"ordered_globals": [
"prefix"
],
"stdout": "",
"func_name": "<module>",
"stack_to_render": [],
"globals": {
"prefix": "Hello "
},
"heap": {},
"line": 4,
"event": "step_line"
},
{
"ordered_globals": [
"prefix"
],
"stdout": "",
"exception_msg": "NameError: name 'input' is not defined",
"func_name": "<module>",
"stack_to_render": [],
"globals": {
"prefix": "Hello "
},
"heap": {},
"line": 4,
"event": "exception"
}
]
}