Quiz (1 point)
Given that:
statement at line 6, tab 2 =
self.x = self.x + 5
Prove that:
statement at line 6, tab 2 = self."x" =
__add__(self.x, 5)
The following properties may be helpful:
- expression a + b =
__add__(a, b)
- assign statement with target (target_1.target_2) and expression value = target_1.target_2 = value
if expression
self.x
+ 5 =__add__(self.x, 5)
, thenself.x = self.x + 5
=self.x = __add__(self.x, 5)
if the following are true:
- a = b
- b = c
then a = c
if the following are true:
- a = b
- b = c
then a = c
Please write your proof in the table below. Each row should contain one claim. The last claim is the statement that you are trying to prove.