WorksheetsPython 146- While Loops
Total questions: 10
Worksheet time: 10mins
which loop can execute a block of code until a condition becomes true
For loop
while Loop
repeat loop
Choose the relevant options that applies while loop
debugging the code until its error free
sleeping until your alarm rings
watching tv from 12:00 pm to 3:00 pm
Correct sequence of while loop
Condition, Action, initialisation, Increment/decrement
initialisation, Condition, Action, Increment/decrement
initialisation, Condition, Increment/decrement, Action
Examples of fibonacci
makes the button component visible on the root window
btn.show()
btn.pack()
btn.unpack()
fibonacci series is
sequence of number where each number is the sum of its preceding two numbers
sequence of number where each number is the sum of itself
sequence of number where each number is the square of its preceding two numbers
str()
converts any type of value to string data type
converts string to integer
Fixed number of fibonacci series
0 and 1
1 and 2
1 and 1
Creates a root window for the application using tkinter
geometry()
Tk()
mainloop()
Choose the correct fibonacci series
0 1 2 3 5 8 13
0 1 1 2 3 5 8
1 2 3 5 8 15 23
