I would consider using the Text widget for this application. The Label widget is considered to be for displaying screen text and while it (the text within) can be modified, it's not quite as simple as in your code.
Have a read of this website, which covers this quite well.
https://tkdocs.com/tutorial/widgets.html#label
edit: you're also missing the 'container' for l1.
Have a read of this website, which covers this quite well.
https://tkdocs.com/tutorial/widgets.html#label
edit: you're also missing the 'container' for l1.
l1 = tk.Label(text="Please answer",font=("Arial",15),bg="Black",fg="White")... corrected
l1 = tk.Label(window, text="Please answer",font=("Arial",15),bg="Black",fg="White")
Sig:
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein