Post

Python Developer
Python Developer@PythonDvz·
Comment below the output! 😃👇
Python Developer tweet media
English
29
9
85
9.1K
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@Python_Dv Correct answer: 10 y is a string, but int(y) converts it to an integer before addition.
English
0
0
1
246
Milind Patil
Milind Patil@MilindP94474844·
@Python_Dv Correct answer is 10. Because first x is integer no matter but y is first string we chenge that to integer and then sum of x+y that output is 10❤️✨
English
0
0
0
40
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@Python_Dv Answer: C Solution: x is an int, and y is a string. The call to `int(y)` obtains the integer value from y (string "5") ie the integer 5. Thus, int(y) is integer 5. x is also integer 5. The printed value is their sum, ie 10. int is a handy function for converting to integer.
English
0
0
6
557
KRB RashyPy
KRB RashyPy@kareemrasheedb·
@Python_Dv 10, y is converted to int before sum, 5+5 is 10
English
0
0
0
278
BUKO
BUKO@obu_koh·
@Python_Dv The answer is C This is because the int keyword has already converted the string value in the y variable to an integer
English
0
0
0
54
Umar Faruk, MPhil
Umar Faruk, MPhil@UmarFaruk41·
@Python_Dv C. 10. Because the string has been destring and now free to mingle hence 10
English
0
0
0
104
Paylaş