subject

In this code, there's a Person class that has an attribute name, which gets set when constructing the object. Fill in the blanks so that 1) when an instance of the class is created, the attribute gets set correctly, and 2) when the greeting() method is called, the greeting states the assigned name. mtino 1-class Person: 2 - def __init__(self, name): self. name = def greeting(self): # Should return "hi, my name is " followed by the name of the Person. return Run 8 # Create a new instance with a name of your choice 9 some_person = 10 # Call the greeting method 11 print (some_person. ) 12 Press ESC to exit the code block at any time

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:40
When running anti-virus software , what could be a reason where recipitent is not guaranteed that data being streamed will not get interrupted?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead w 4 epizodzie
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
You know the right answer?
In this code, there's a Person class that has an attribute name, which gets set when constructing th...
Questions
question
Mathematics, 13.09.2020 21:01
question
Social Studies, 13.09.2020 21:01
question
Mathematics, 13.09.2020 21:01
question
Mathematics, 13.09.2020 21:01
question
History, 13.09.2020 21:01
question
Spanish, 13.09.2020 21:01
question
Mathematics, 13.09.2020 21:01
question
History, 13.09.2020 21:01
question
Mathematics, 13.09.2020 21:01
question
Mathematics, 13.09.2020 22:01
question
Biology, 13.09.2020 22:01
question
English, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
History, 13.09.2020 22:01
question
Geography, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Spanish, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
question
Mathematics, 13.09.2020 22:01
Questions on the website: 13722362