Post

Kode Gurukul
Kode Gurukul@kodegurukul·
Answer is D Error. Because here because of the quotes around it , it is considered as the String. So, we cannot add integer with the string.
English
0
0
7
841
Anslem
Anslem@anslemeriyo·
@Python_Dv the answer is (D) because In the expression a + 3, Python tries to concatenate a string (a, which is "6") with an integer which is not possible. String concatenation in Python requires both operands to be strings.
English
1
0
6
579
Steven Leung
Steven Leung@stevenleung·
@Python_Dv D. The + operator will throw an error when you try to operate on a string and an integer.
English
0
0
0
90
Param siddh
Param siddh@Parameshwarz·
@Python_Dv There would be no error. I know there is issue with type of variable but in python they're not gonna get any error, it will show 63 as output.
English
0
0
0
1
Shreyas K
Shreyas K@shreyas_k17·
@Python_Dv D (Error),bcoz string & string addn results concatenation and int & int addn will results int but string & int. Addn is going to be error
English
0
0
0
3
Yusuf Bature
Yusuf Bature@Yusuf_Bature059·
@Python_Dv "Error" because you can't add strings with numbers
English
0
0
0
1
Amanar Imane
Amanar Imane@amanar_imane·
@Python_Dv I think D Erreur because ‘6’ is str while 3 is int
English
0
0
0
52
Udaygiri Aparnathi
Udaygiri Aparnathi@Udaygiri_·
@Python_Dv Answer Is D. Error Because the " + " oparetor is no add or joint the String value and Integer value.
English
0
0
0
68
Heitor Prado
Heitor Prado@heitorprado006·
@Python_Dv If it were javascript it would be 63, but python doesn't allow you to operate strings and integers with + sign
English
0
0
0
0
Vaishnavi S
Vaishnavi S@X_Vaishh10·
@Python_Dv This code will raise a TypeError because it tries to concatenate a string("6") with an integer (3) directly without conversion...That's why the answer is option D:Error
English
0
0
0
23
𝓖𝓪𝓾𝓱𝓪𝓻 𝓝𝓪𝔀𝓪𝓫 🔆
@Python_Dv when you try to concatenate a string with an integer using the + operator, it raises a TypeError because Python does not allow implicit conversion between string and integer types. However, if you try to concatenate two strings, it would result in concatenation.
English
0
0
0
147
SJ
SJ@Susmita23980779·
@Python_Dv Error, here 6 is a string. We can't add string with numerical Number
English
0
0
0
148
ESquare
ESquare@elvistanyi2020·
@Python_Dv Error you can not concatenate an int with a string this way or the answer is 63
English
0
0
0
105
Paylaş