• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
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 odpowiedzi
0
thank you!
6th Oct 2019, 12:36 PM
Elf
Elf - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
CAN ANYONE SUGGEST ME AS A STUDENT WITH A PASSION OF CODING WHICH CODING LANGUAGE SHOULD I CHOOSE AS BEGGINER
5 Votes
I can't see my activity
2 Votes
[SOLVED] What's wrong in my code?
2 Votes
I can't see my activity in my profile
1 Votes
Am getting discourage in my Language, Help me out🙏🙏
1 Votes
Can anyone help me?
1 Votes
Assets not loading without trailing slash
1 Votes
Is the Coding Certificate Worth it??
3 Votes
Python
3 Votes
High paying job?
2 Votes