Posts

Showing posts from February, 2023

CHAPTER 9: PYTHON – LOOPING AND TKINTER GUI

  CHAPTER 9: PYTHON – LOOPING AND TKINTER GUI   D. 1. Differentiate between WHILE - ELSE LOOP and FOR – ELSE LOOP When we use else with while loop this structure is known as while-else loop. Using this loop, we can run an instruction code when the comparing value reaches to exceed limit of condition value. When we use else with for loop, this structure is known as for-else loop. The else clause of a loop gets executed only if the loop completes its execution normally without having encountered with break statement.   2. Differentiate between RADIOBUTTON and CHECKBUTTON. Radiobutton is used to create one option out of many selections. The user is provided with multiple choices out of which only one can be selected. Checkbutton is used to create multi-selection check boxes. User can select one or multiple check boxes from the list.   E.1. What are loops and why are they important in Python? Loop causes a section of our program to be repeated a certain n...