• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • 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 Respuestas
0
thank you!
6th Oct 2019, 12:36 PM
Elf
Elf - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Project ideas
1 Votes
someone helps how can i make two for loops over a 2d array in c ( i didn't learned pointers yet )
0 Votes
Hi help me I am new
0 Votes
Why are there like 10 community-made lessons?
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
practising daily
0 Votes
Where can I learn c#
0 Votes
Question to sololearn
1 Votes
What should i do
0 Votes
Deep learning
0 Votes