Why python func isn't working ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 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