0

Can someone give me a simple explanation of this function () and what is the different with (self)

18th Oct 2019, 11:05 AM
Jessica Prajnadewi
2 Respostas
+ 2
Please don't write codes into the Relevant Tags. Rather put 'Python OOP' 👍
18th Oct 2019, 11:26 AM
Ipang
0
def hello (): Print ("Hello World!") Simplest function. And about self is when you create a function inside a class then you need to pass like a parameter in every function you create inside of it.
18th Oct 2019, 11:09 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar