can only concatenate str not int to str error in python

technical talkiess
0

 


Agar string me integer add karte ho to ye wali error ayengi 



Traceback (most recent call last):

  File "c:\Users\ukv-208\Downloads\prac\python\timemodule.py", line 3, in <module>

    print(lis[1] +5)

          ~~~~~~~^~

TypeError: can only concatenate str (not "int") to str





Code :- val = list(map(lambda x:x[i],lis_number))


Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)