+ 1

What is the difference between def and class in python3 ?

I always use def while working on my projects. But ive seen many ppl using class as well , and from what i hear it they are sort of familiar. I still dont know exactly what it is , i really want to know it in depth as it might be useful to me.

8th Sep 2017, 3:36 PM
Exclbr
Exclbr - avatar
1 Answer
0
So Class is is like a room full of functions
8th Sep 2017, 3:54 PM
Exclbr
Exclbr - avatar