Post

@PythonPr Output 20
Why:
x = 10 is an integer
y = "10" is a string
int(y) converts "10" → 10 (integer)
So x + int(y) becomes 10 + 10 = 20 and print(...) outputs 20
English

@PythonPr A.20
String is converted to an integer before addition
English

@PythonPr int converts string value into integer then adds 2 integer value
output :20
English

@PythonPr Y is a string with "" , and while printing u r converting it into int , but still I don't understand how the answer is 20? It can also convert it to any garbage values ?
English































