Fix the error. Tap to see | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Fix the error. Tap to see

class A: def __init__(self,name): self.name = name def hello(hell): def hii(self): print(f"Hii {self.name}") hell() print(f"Bye {self.name}") return hii @hello def info(self): print (f"The name is {self.name}") a= A("Arpit") a.info()

25th Mar 2023, 5:20 PM
NET MASTER
NET MASTER - avatar
4 Answers
+ 2
just change `hell()` to `hell(self)` hell…😵
26th Mar 2023, 4:43 AM
o.gak
o.gak - avatar
+ 6
NET MASTER , > not quite clear what your issue or question is. please give some more details. > if this is a sololearn exercise, please mention the tutorial and the exercise number.
25th Mar 2023, 7:02 PM
Lothar
Lothar - avatar
+ 2
Pls edit your question description by: 1. Describing your task 2. Explaining your difficulties 3. Removing the code 4. Adding a link to your code in Code Playground (use "+" button) The better your information, the better people can help you.
26th Mar 2023, 3:57 AM
Emerson Prado
Emerson Prado - avatar
+ 1
o.gak Thankyou bro... It help me
26th Mar 2023, 5:35 AM
NET MASTER
NET MASTER - avatar