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

Classes in Python

Can someone please explain to me the function of the attribute “self” in this code? Why do we need to use it? https://code.sololearn.com/c92gGJ2T77EP/?ref=app

pythonclassesobjectsoop
6th Oct 2019, 12:30 PM
Elf
Elf - avatar
2 Antworten
0
thank you!
6th Oct 2019, 12:36 PM
Elf
Elf - 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ß
Decorators in python.
2 Votes
How to install Bcrypt here
1 Votes
Codegames
1 Votes
عفاكم بغيت نسولكم كيفاش ندير كود ويكون صحيح؟
1 Votes
What is happening with sololearn
1 Votes
CAN I FOLLOW YOU🙏🙏!!!
2 Votes
Can sololearn have multiple inpus&outputs?
3 Votes
CAN ANYONE TELL ME WHAT TO LEARN NEXT AFTER ADVANCED PYTHON CONCEPTS
1 Votes
Programming language learning
0 Votes
How can I add images to my website
0 Votes