a = 20 def convert(a): b = 20 a = a + b convert(10) print(a)Select the correct output from the given options:
10
20
30
Error
In Python, variables defined inside a function are local to that function and do not affect variables outside the function. Here, the variable a inside the function convert()is a local variable, and its value does not modify the global variable a. Therefore, the value of a printed outside the function remains 20.
Rupal, Shanu and Trisha were partners in a firm sharing profits and losses in the ratio of 4:3:1. Their Balance Sheet as at 31st March, 2024 was as follows:
(i) Trisha's share of profit was entirely taken by Shanu.
(ii) Fixed assets were found to be undervalued by Rs 2,40,000.
(iii) Stock was revalued at Rs 2,00,000.
(iv) Goodwill of the firm was valued at Rs 8,00,000 on Trisha's retirement.
(v) The total capital of the new firm was fixed at Rs 16,00,000 which was adjusted according to the new profit sharing ratio of the partners. For this necessary cash was paid off or brought in by the partners as the case may be.
Prepare Revaluation Account and Partners' Capital Accounts.