0
Find output
what os output >>>x=5 >>>y=x+3 >>>y=int (str (y)+"2") >>>printf (y)
4 Antworten
+ 1
last line it's print not printf
answer is 82
+ 1
x=5
y=5+3 = 8
y = int( str(y)+ "2") ... here you are converting y into a string and when two strings are added they are joined.
here str(y) + "2" = "8"+"2" ( "2" is is also a string ) = "82"
now int() converts 82 into an integer
finally you print the value of y which is the number 82
note: first inner bracket is resolved then the outer ones
i hope this clears your doubt
0
plz explain
0
thanks so much