• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

Why python func isn't working ?

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

problem#help
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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
I've a HTML code question
1 Votes
How my gradient is so mess I code in vscode and copied here to ask some questions please help me with this one too
1 Votes
C++
1 Votes
HELP ME LEARN
0 Votes
Please tell me about methods
1 Votes
Appointment Booking website
0 Votes
Does anyone know how to go to another "page" on the same page using the HTML button tag?
2 Votes
Mentors
1 Votes
How do i learn php in here?
1 Votes
Sololearn coders should sharpen their knowledge. What should be the output? Sololearn says it's 20. Do you agree with them?
0 Votes