Question: what happened with my code here, Python explain to me plz LE File Edit Format Run Options Window Help csc242lab4.py - /Users/halhindi/Downloads (csc2421ab4.py (3.9.7) from

what happened with my code here, Python
explain to me plz
what happened with my code here, Python explain to me plz LE
File Edit Format Run Options Window Help csc242lab4.py - /Users/halhindi/Downloads (csc2421ab4.py (3.9.7)

LE File Edit Format Run Options Window Help csc242lab4.py - /Users/halhindi/Downloads (csc2421ab4.py (3.9.7) from tkinter import Label, Tk class Sign (Tk): n3 def __init__(self, 1st= [], parent=None): ng 6 Tk.init__(self, parent) "he self.make_widgets() self.lst = lst def make_widgets(self): self.title("Warning") labell-Label(self, text= "GREAT DEAL!") label1.pack() label2-Label(self, text="Android 1.2 Phones for $10!") label2.pack) label3-Label(self, text= "Security Vulnerabilities Included!") label3.pack) if len(self. lst) --3: self.title( "Digital Sign") Text1 = str (self.lst[e]) Text2 = str (self.lst[1]) Text3 = str (self.lst (21) label1=Label(self, text=Texti) label1.pack() label2=Label(self, text=Text2) labe12.pack( label3=Label(self, text=Text3) label3.pack) self.make_widgets() File "/users/halhindi/Downloads/csc2421ab4.py", line 15, in make_widgets if len(self.lst)==3: File "/Library/Frameworks/Python. framework/Versions/3.9/lib/python3.9/tkinter/ _init__.py", line 2354, in--getattr__ return getattr(self.tk, attr) AttributeError: '_tkinter.tkapp' object has no attribute 'st' Pos >>> 2: Modify the Sign() class to take in an optional parameter of type list that has 3 sentences that can be displayed on the screen. If there aren't three items in the list, the the default message as shown in problem I will be displayed. Example usage: >>> lines=['line 1', 'line 2', 'line 3'] >>> Sign(lines) .mainloop() >>> Digital Sign 0 X line 1 line 2 line 3 >>Sign().mainloop() Warning GREAT DEAL! Android 1.0 Phones for $10! Security vulnerabilities included! >>> Ist=[] >>>Ist.append("The key to the lab is to add multiple labels") >>>Ist.append("This list will be stored in an instance variable") >>> Ist.append("The text property of the labels will be set to each of these message") >>> Sign(Ist).mainloop() Digital Sign The key to the lab is to add multiple labels This list will be stored in an instance variable The tot property of the labels will be set to each of these message

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!