Post

@Python_Dv Output : 125 ✅
a = "123" --> It's a string.
b = int(a) --> typecasting string into integer.
So now, b = 123 --> an integer.
print(b + 2) --> 123 + 2 = 125
English

@Python_Dv Output: B — 125
"123" is converted to the integer 123, then + 2 → 125.
English

@Python_Dv Answer: (B) 125
The code first assigns the string value "123" to the variable a. Next, the int() function converts this string to the integer value 123, which is then stored in the variable b. Finally, the program prints the result of the addition operation b +
English

@Python_Dv output=125
لانه حول المتغير aمن string
اليinteger
واضاف عليه 2
وهي اصلاint
العربية

@Python_Dv B. a is typecasted to an integer and added 2
English

@Python_Dv B) 125.
Type casting turns "123" into a number, not a string.
English

@Python_Dv 123 es un string convertido a int se transforma en 123 numerico y sumado con 2 nos da 125
Español






























