Post

@PythonPr The code snippet a = "10", b = a, a = a * 2, print(a) will produce the output 1010.
Here's why:

English

@PythonPr Question :
a = "10"
b = a => "10"
a = a * 2 =>"1010" until you don't cast it to int or float.
answers are :
A 102
B 20
C Error
D 1010
My answer :
D because "String" * 2 == "String" + "String" == "StringString" so "10" * 2 => "1010"
English



















