+ 1
Why my code is not running?đ€đ€
class welcome: def __init__(): print("hello")
6 Answers
+ 4
you do not initialize a welcome object
+ 4
__init__() needs self as parameter or one needs to make the class static. in both ways, one needs to initialize/ call the method from the static class
+ 2
Lisa my bad actually my answer to this question was wrong
I got two questions
Currently this class is like static class like we have in java?
But say I want a traditional class with just it's constructor is that possible just by using self?
+ 2
You need to add Self as parameter to install Data ...
+ 1
Thanks after your suggestions my code is now running. I was missing self parameters and forget to make a object(a=welcome ()).
+ 1
Thank You