Why python func isn't working ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why python func isn't working ?

for example def sum(x): print(x+"4") sum(1)

13th Feb 2020, 6:20 PM
Anisimov Vladislav
Anisimov Vladislav - avatar
1 Answer
+ 6
You can't add an integer and a string. It should be: print(x+4)
13th Feb 2020, 6:27 PM
Aymane Boukrouh
Aymane Boukrouh - avatar