+ 1
X=3 , y=x+3, y=int(str(y)+"2") print(y)????
I can't find correct answer please help me
14 odpowiedzi
+ 4
x=3 (3)
y=3+3 (6)
y=int(str(y)+"2")
y=y converted to a string ("6")+"2"
so y = "6"+"2" ("62"), since it takes the numbers as tokens, and not numbers
+ 3
thanks s lot
+ 1
62
+ 1
x=5
y=x+3
y=int(str(y)+"2")
print(y)
that Q in Quez
I tried 82
redused
what's correct answer
+ 1
I tried 82 but wrong
0
or maybe if the str means the string of whats inside the brackets it would be y2 but i think its the value of y converted to a string
0
no problem, but i can be wrong since im not programming with python since 3 months ago
0
wait thats another case here it strings y so it will be "y"+"2" so here it will be y2
0
u tried 62 faild
0
i misunderstood the str() function
it strings everything inside the brackets so it would string the character y here
0
x = 5
y = 5 + 3
y = int(str("8") + "2")
print(y)
Output is 82. because the Y value is becoming as string in 3rd line
thank you
0
82 is correct answer
0
correct answer = 82
0
correct answer =82