+ 1

What is the output of this code?

>>> x = 5 >>> y = x + 3 >>> y = int(str(y) + "2") >>> print(y)

12th Apr 2017, 9:50 AM
Gracie G Hunter
Gracie G Hunter - avatar
2 Answers
+ 13
The output will be 82. You converted variable y to string by using str(y)
12th Apr 2017, 9:57 AM
Wisdom Abioye
Wisdom Abioye - avatar
+ 3
82
12th Apr 2017, 9:51 AM
Gracie G Hunter
Gracie G Hunter - avatar