83,630 views
20 votes
20 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

User XGHeaven
by
2.9k points

2 Answers

6 votes
6 votes

Answer:

6

Step-by-step explanation:

edg

User Jamie Dixon
by
2.6k points
16 votes
16 votes

Answer:

result = 6

Step-by-step explanation:

Just substitute the numbers for the variables:

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

so result = 6

User Krosenvold
by
2.3k points