+ 2

What is the output of this code? a = 8 b = 4 c = a/b d = str (c) print (2*d)

ŠÆŠ·Ń‹Šŗ Python

11th Oct 2020, 2:34 PM
ŠŃŠŗŠ°Ń€Š¾Š²Š° Š”ŠøŠ»ŃŒŠ½Š¾Š·Š°
ŠŃŠŗŠ°Ń€Š¾Š²Š° Š”ŠøŠ»ŃŒŠ½Š¾Š·Š° - avatar
2 Answers
+ 3
2.02.0 Why? c=8/4= 2.0 then will be converted to sting and d = ā€ž2.0ā€œ and the twice equals to the above mentioned result.
11th Oct 2020, 2:39 PM
JaScript
JaScript - avatar
0
šŸ˜ŠšŸ˜ŠšŸ˜ŠšŸ˜ŠšŸ˜Š
11th Oct 2020, 4:18 PM
ŠŃŠŗŠ°Ń€Š¾Š²Š° Š”ŠøŠ»ŃŒŠ½Š¾Š·Š°
ŠŃŠŗŠ°Ń€Š¾Š²Š° Š”ŠøŠ»ŃŒŠ½Š¾Š·Š° - avatar