Computer Science, asked by rekham849, 5 months ago

if in python language the value a variables age is 15 initially after that its value is changed as age=20 then_______

1.then both variables will be considered as same but values are different

2.variable will be considered as different variables as their addresses in memory are not same .

3.we can not assign different values to variables with the same name

4.variables are storage containers so they will be treated as same as their name are same.

Answers

Answered by dattarajshinde44
1

Answer:

3.  we can not assign different values to variables with the same name

Explanation:

with Same Name. Although it is usually a bad idea, you can declare a formal parameter or a local variable with the same name as one of the instance variables. When this modified method is called, it will add amount to the local variable balance , and then return to the caller.

Answered by mrunalipatil5
0

Answer:

Right answer is 3. We can not assign different values to variables with the same name .

Explanation:

I don't know the explanation .

PLEASE MARK ME AS THE BRAINLIEST

Similar questions