Post

@PythonPr Output: B) 1010 ✅
Explanation:
a is a string ("10"), not a number.
In Python, multiplying a string by an integer repeats the string.
So "10" * 2 → "1010" (string repetition, not arithmetic).
English

@PythonPr Answer: B. 1010
In Python, when the multiplication operator (*) is used between a string and an integer, the string is repeated that many times.
The variable a is assigned the string value "10".
The variable b is assigned the integer value 2.
English

@PythonPr Output : 1010 ✅
a = "10" --> is a string not integer
b = 2 --> is an integer
print(a * b) --> printing string "10" two times --> 1010
English

@PythonPr C. Error. Python doesn't let you used math between inter and string.
English

@PythonPr B.
The fiers line is "a string" of data, not a number.
The second line is an integrer, and It operantes x2.
English

@PythonPr print(a * 2)
=print(a + a)
=print("10" + "10")
=print("1010")
=1010
Magyar

@PythonPr The result is: B.1010
Reason
The variable a has a string value of 10 not a number
The variable b has an integer value of 2.
English





























