+ 2

programming language

What is the output of this code? >>> x = 5 >>> y = x + 3 >>> y = int(str(y) + "2") >>> print(y)

12th Jan 2018, 7:45 AM
Prakash Choudhary
Prakash Choudhary - avatar
3 Answers
+ 5
y becomes a string. y+"2" ="8"+"2" ="82"
12th Jan 2018, 9:49 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 1
how
12th Jan 2018, 8:50 AM
Prakash Choudhary
Prakash Choudhary - avatar