I am a little bit loss here ,i don't understand why the answer is 30 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am a little bit loss here ,i don't understand why the answer is 30

When string= 10 and int= 20 are added are we not suppose to have 1020

26th Aug 2020, 2:57 PM
Tabot Charles Bessong
2 Answers
+ 5
Share your whole script
26th Aug 2020, 2:58 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Both of the values are integers 10 and 20 and if you add them you get 30, If it was string ='10' and int ='20' then the answer will be 1020
26th Aug 2020, 3:00 PM
Ruba Kh
Ruba Kh - avatar