Post

Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr Answer: 20 Solution: x is the integer 10. y is the string "10". However, int(y) converts the string to int. Hence, int(y) gives the value 10. So, x + int(y) simplifies to 10 + 10 that gives 20.
English
0
1
11
528
MournfulCord
MournfulCord@MournfulCord·
@PythonPr 20. int(y) converts the string "10" to an integer, and 10 + 10 is, well, 20.
English
0
0
0
189
Gopuff
Gopuff@gopuff·
There's no middleman here to mark things up. Orders come straight from our shelves to you in as fast as 15 minutes.
English
94
135
1K
10.3M
Kieran
Kieran@yohaneezra·
@PythonPr Since y is int then 20 will be output
English
0
0
0
82
Charles
Charles@chucky3528211·
@PythonPr 20 x is assigned the integer value 10 y is assigned the string value "10" int(y) converts the string "10" to the integer 10 Then x + int(y) becomes 10 + 10, which equals 20 Finally, print() outputs 20 to the console
English
0
0
4
189
BIGO LIVE
BIGO LIVE@BIGOLIVEapp·
Up late and bored? Tap into live conversations.
English
34
31
473
6.5M
Paylaş