Git¶
Git Notes¶
Object Data¶
Text: j = input()
Code Line: 1
Comment: takes input for j
Screen Output:
Keyboard Input: kaleb
Stack: [‘1’]
ID Table: {‘type’: ‘str’, ‘value’: ‘kaleb’, ‘memory’: ‘j’}
Memory: [{‘type’: ‘str’, ‘value’: ‘kaleb’, ‘memory’: ‘j’}]
Execution History: [’ > kaleb’]
Object Data¶
Text: print(j)
Code Line: 2
Comment: prints j
Screen Output: kaleb
Keyboard Input:
Stack: [‘2’]
ID Table: {‘type’: ‘’, ‘value’: ‘’, ‘memory’: ‘’}
Memory: [{‘type’: ‘str’, ‘value’: ‘kaleb’, ‘memory’: ‘j’}]
Execution History: [’ > kaleb’, ‘kaleb’]
Object Data¶
Text: j = 20
Code Line: 3
Comment: sets j equal to 20
Screen Output:
Keyboard Input:
Stack: [‘2’, ‘3’]
ID Table: {‘type’: ‘int’, ‘value’: ‘20’, ‘memory’: ‘j’}
Memory: [{‘type’: ‘int’, ‘value’: ‘20’, ‘memory’: ‘j’}]
Execution History: [’ > kaleb’, ‘kaleb’]
Object Data¶
Text: k = 21
Code Line: 4
Comment: sets k equal to 21
Screen Output:
Keyboard Input:
Stack: [‘4’]
ID Table: {‘type’: ‘int’, ‘value’: ‘21’, ‘memory’: ‘k’}
Memory: [{‘type’: ‘int’, ‘value’: ‘20’, ‘memory’: ‘j’}, {‘type’: ‘int’, ‘value’: ‘21’, ‘memory’: ‘k’}]
Execution History: [’ > kaleb’, ‘kaleb’]
Object Data¶
Text: print(j+k)
Code Line: 5
Comment: adds j and k and prints
Screen Output: 41
Keyboard Input:
Stack: [‘5’]
ID Table: {‘type’: ‘’, ‘value’: ‘’, ‘memory’: ‘’}
Memory: [{‘type’: ‘int’, ‘value’: ‘20’, ‘memory’: ‘j’}, {‘type’: ‘int’, ‘value’: ‘21’, ‘memory’: ‘k’}]
Execution History: [’ > kaleb’, ‘kaleb’, ‘41’]