New course! Every coder should learn Generative AI!
Try a free lesson0
Help pyton
2 Answers
+ 1
Make the print statement either-
print('square is: '+ str(s))
OR
print('square is: ', s)
Because a and b are integer inputs and cannot be concatenated with a string.
0
Thank you