0

Fill in the blanks to make sayHi() a class method.

class Person: def __init__(self, name): self.name = name (_____________) (__)sayHi(cls): print("Hi")

20th Dec 2020, 7:40 AM
Chokkantawitch Pheree
Chokkantawitch Pheree - avatar
5 Respostas
+ 2
I think the answer is already in your question.
20th Dec 2020, 7:42 AM
noteve
noteve - avatar
+ 7
class Person: def __init__(self, name): self.name = name @classmethod def sayHi(cls): print("Hi")
28th Jan 2021, 6:37 PM
Ara Sant
Ara Sant - avatar
+ 2
thx!
20th Dec 2020, 8:18 AM
Chokkantawitch Pheree
Chokkantawitch Pheree - avatar
+ 1
IT DOESNT WORK
7th May 2021, 6:24 PM
Bendahou
Bendahou - avatar
+ 1
question : Fill in the blanks to make sayHi() a class method. program : class person: def __init__(self,name): self.name = name @classmethod def sayhi(cls): print("hi")
8th Jun 2021, 10:55 AM
Madhavareddy
Madhavareddy - avatar