Question (see pic) Code: (see question below the code): class Document: #TO DO: define the constructor method, __init__ and then initialize values #def __init__(___, ___): # initilialize values here #TO DO: define the method add_words #def add_words(___, ___): #TO DO: define the method submit #def submit(___): #TO DO: define the method get_grade #def get_grade(___): def __str__(self): #TO DO: Fill in the blanks document_info = f"This Document instance has _ instance attributes.\n" document_info += f"The class used to create this object has _ methods and _ class attribute.\n" document_info += f"This Document instance has the following stats.\n" #TO DO: Complete document_info by adding more lines below return document_info if __name__ == "__main__": while(True): command = input() if command == 'exit': break exec(command) print(essay)
Question (see pic) Code: (see question below the code): class Document: #TO DO: define the constructor method, __init__ and then initialize values #def __init__(___, ___): # initilialize values here #TO DO: define the method add_words #def add_words(___, ___): #TO DO: define the method submit #def submit(___): #TO DO: define the method get_grade #def get_grade(___): def __str__(self): #TO DO: Fill in the blanks document_info = f"This Document instance has _ instance attributes.\n" document_info += f"The class used to create this object has _ methods and _ class attribute.\n" document_info += f"This Document instance has the following stats.\n" #TO DO: Complete document_info by adding more lines below return document_info if __name__ == "__main__": while(True): command = input() if command == 'exit': break exec(command) print(essay)
Question (see pic) Code: (see question below the code): class Document: #TO DO: define the constructor method, __init__ and then initialize values #def __init__(___, ___): # initilialize values here #TO DO: define the method add_words #def add_words(___, ___): #TO DO: define the method submit #def submit(___): #TO DO: define the method get_grade #def get_grade(___): def __str__(self): #TO DO: Fill in the blanks document_info = f"This Document instance has _ instance attributes.\n" document_info += f"The class used to create this object has _ methods and _ class attribute.\n" document_info += f"This Document instance has the following stats.\n" #TO DO: Complete document_info by adding more lines below return document_info if __name__ == "__main__": while(True): command = input() if command == 'exit': break exec(command) print(essay)
class Document: #TO DO: define the constructor method, __init__ and then initialize values #def __init__(___, ___): # initilialize values here
#TO DO: define the method add_words #def add_words(___, ___):
#TO DO: define the method submit #def submit(___):
#TO DO: define the method get_grade #def get_grade(___):
def __str__(self): #TO DO: Fill in the blanks document_info = f"This Document instance has _ instance attributes.\n" document_info += f"The class used to create this object has _ methods and _ class attribute.\n" document_info += f"This Document instance has the following stats.\n" #TO DO: Complete document_info by adding more lines below
return document_info
if __name__ == "__main__": while(True): command = input() if command == 'exit': break exec(command) print(essay)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.