Post

@PythonPr Output: B) 125
a is a string "123", int(a) converts it to the number 123.
Then 123 + 2 = 125.
English

@PythonPr B.
Explanation:
a = "123" assigns a string containing numeric characters.
b = int(a) converts that string to the integer 123.
print(b + 2) performs integer addition: 123 + 2 = 125.
No error because "123" is a valid numeric string and can be converted to an integer using int().
English

@PythonPr a is given as string
b converts the string to integer
123+2 is 125
English

@PythonPr output125
لانك عملت متغيرa
وده دخل علي شكل نصstring
بعدها حولته اليinteger
في متغيرb
وجمعت عادي
العربية

@PythonPr Answer is B,the variable a is changed to become interger in b
English

@PythonPr The correct answer is B) 125.
a = "123": The variable a is assigned a string (text) value of "123".
b = int(a): The int() function converts the string "123" into the integer (number) 123 and stores it in b.
print(b + 2): Python performs mathematical addition between integer
English






























