Question
Computer Science Question on Input Output
srAsrB=srA[0:3] - srB['a':'c']
As per the above statement, what are the values of objects srAsrB. Choose correct output-
A
a | 20 |
---|---|
b | 30 |
c | 40 |
B
a | 30 |
---|---|
b | 40 |
c | 30 |
C
a | 40 |
---|---|
b | 100 |
c | 40 |
D
a | 80 |
---|---|
b | 110 |
c | 20 |
Answer
a | 80 |
---|---|
b | 110 |
c | 20 |
Explanation
Solution
The correct option is (D) :a | 80 |
---|---|
b | 110 |
c | 20 |
. |