equal
deleted
inserted
replaced
5 |
5 |
6 1. Braces are used to indicate blocks in Python. True or False? |
6 1. Braces are used to indicate blocks in Python. True or False? |
7 |
7 |
8 Answer: False |
8 Answer: False |
9 |
9 |
10 #. ``for`` can iterate over |
10 #. ``for`` loop can iterate over, |
11 |
11 |
12 a. list of numbers |
12 a. list of numbers |
13 #. list of strings |
13 #. list of strings |
14 #. strings |
14 #. strings |
15 #. tuples |
15 #. tuples |
83 continue |
83 continue |
84 print i * j |
84 print i * j |
85 |
85 |
86 Answer: Nothing is printed |
86 Answer: Nothing is printed |
87 |
87 |
|
88 .. #[[Anoop: I think more questions on while loop has to be added as |
|
89 for loop was already covered in another LO, these questions can be |
|
90 kept, but it will good if we add few more on while loop]] |
|
91 |
88 Larger Questions |
92 Larger Questions |
89 ---------------- |
93 ---------------- |
90 |
94 |
91 1. A number is called Armstrong number if the sum of cubes of its digits is |
95 1. A number is called Armstrong number if the sum of cubes of its digits is |
92 equal to the number itself. Find all the three digit Armstrong numbers. |
96 equal to the number itself. Find all the three digit Armstrong numbers. |
93 |
97 |
|
98 .. #[[Anoop: Add one more question]] |