TypeError Traceback (most recent call last) Cell In[9], line 4 2 y = 20 3 total = x + y ----> 4 print("The total is: " + total) TypeError: can only concatenate str (not "int") to str
@Jbergawane9 Жыл бұрын
>>> x=10 >>> y=20 >>> total = x + y >>> print("the total is: " + total) Traceback (most recent call last): File "", line 1, in TypeError: can only concatenate str (not "int") to str
@Mangohawk124 Жыл бұрын
Yeah only with int multiple char Or int multiple int Or char plus char Or making a int string by adding quotation and add them...❤ Hope it helps ❤❤
@kaus055 ай бұрын
implicit type conversion does not work with ambiguous input such as in case of string concatenation for avoiding scenarios such as what should be the output in case of '5' + 5
@asahade38473 ай бұрын
I don't understand
@rajeshprajapati1851 Жыл бұрын
They really mean it when they say "in details".
@iamskatif11 ай бұрын
Not one of the best, the One best channel ❤
@davidsethathi718811 ай бұрын
x = 10 y = 20 total = x + y print("The total is: " + str(total))
@yathishkumary1867 Жыл бұрын
Your videos are really helpful. Kindly Please complete the DBMS series taught by prabhu subramanian. Thanks ❤️❤️
@SamuelGselassie10 ай бұрын
x = 10 y = 20 tot = x + y print("The total is: " + str(tot)) 'The total is: 30'
@314_vaibhavshukla7 Жыл бұрын
yesterday i finished from 1 to 11 today i finished it till 32 , and the process is still going on...! i 'will comment it again.
@GaddamPrakash-j8b Жыл бұрын
Output=the total is :60
@dhirajdc200 Жыл бұрын
it will be error because we can't just add directly str and int value. please correct me if I'm wrong
@manjunathkc Жыл бұрын
sir plese upload quikly as possible we are eagerly waiting
@aman_maurya7.2 ай бұрын
Class 11 CBSE Computer Science students ❤
@mahmudansari6360 Жыл бұрын
Sir please continue C++ series......
@AshutoshSingh-ht8st5 ай бұрын
And the solution is to remove concatenation sign from total And put a comma before it
@achugh522 ай бұрын
we cannot concatenate string and number in print statement. we need to place a comma before + total
@virtusosmartphone Жыл бұрын
output: The Total is: 30
@fantasycollection5383 Жыл бұрын
suppose if there is 5.98+10 then it should be 15 according to rule of conversion
@BabitaGhalley-d6t Жыл бұрын
output: The total is: 30
@Ranganadhamkrishnachaitanya27 Жыл бұрын
What is higher data type and what is lower data type
@AshutoshSingh-ht8st5 ай бұрын
ERROR! Traceback (most recent call last): File "", line 4, in TypeError: can only concatenate str (not "int") to str === Code Exited With Errors ===
@mohammedisarezwani Жыл бұрын
error . sting is not concatenated with int type
@navyaswarup9573 Жыл бұрын
Error, as string and int can't be sum together.
@jereddymanojkumar3830 Жыл бұрын
30
@hamzabenhaddou6240 Жыл бұрын
why not 16 instead of 15
@tharunkumar843011 ай бұрын
I got an error. But in JAVA compulsory it won't get an error
@nikhiDavangere Жыл бұрын
Error
@ECEKOTESWARARAOM Жыл бұрын
Type error
@dejendegu210211 ай бұрын
'The total is:+ 30'
@rajdeepsarkar4182 Жыл бұрын
❤❤
@arifansari56719 ай бұрын
>>> x = 10 >>> y = 20 >>> total = x + y >>> print("the total is: " + total) Traceback (most recent call last): File "", line 1, in TypeError: can only concatenate str (not "int") to str
@ahmadfarhadzammani52618 ай бұрын
x = 10 y = 20 total = x+y print("the total is: "+ str(total))