Post

@PythonPr The answer is C.
Because r = p + str(q) is concatination, it gives us => 414
Then 414/2 = 207.0 because in Python division(/) always returns a flot result. Even when dividing with only integers
English

@PythonPr C. By default, the type returned by division is 'float'. If you want integer division, convert the expression to int.
English

@PythonPr Answer:-(C)207.0
r= p + str(q) means first convert q into string then concatenate p and q. So r= "414".
s = int(r) / 2 means first convert r into integer then divide by 2.
The result of int/int is float in python.
So final answer is 207.0
English

@PythonPr Ans. c) 207.0
r = '414'
int(r) -> 414
s = 414 / 2
= 207.0 # type(s) is float
English

@PythonPr r is a string '4' + '14' = '414'
Then casts to an int but a fraction is always float so it goes to 414 / 2 as a float = 207.0 (c)
English

@PythonPr Option a
Concatenate p and q and change string to integer and it is divided with 2
Store in r
English































