102k views
4 votes
What is the value of the variable result after these lines of code are executed?

>>> a = 3
>>> b = 2
>>> C=0
>>> result = a*b-cb
The value of result is

2 Answers

3 votes

Answer:

6

Step-by-step explanation:

edg

User Ditkin
by
4.1k points
7 votes

Answer:

result = 6

Step-by-step explanation:

Just substitute the numbers for the variables:

(3*2) - (0*2) = 6

so result = 6

User Tao Peng
by
4.5k points