What is Turtle?
Circle
An arrow mark
Dot
Square
Find the output of the code snippet?for i in range (5, 0, -1):print i
1 2 3 4 5
-1 -2 -3 -4 -5
5 4 3 2 1
5 4 3 2 1 0
_______ is an instruction used in for, including a set of values in a variable.
in
range
if
None of these
Find the output of the programme given below: if the value of n is 5.n = input ("Enter a number:")For i in range (1, 6):print i, "X" ,n, "=" , i * n
1×5= 5 2×5= 103×5= 154×5= 205×5= 25
1×5= 5 2×5= 103×5= 154×5= 205×5= 256×5= 30
5×1= 5 5×2= 105×3= 155×4= 205×5= 25
The following program code will results:for i in range(10, 1, -2);print i
10 8 6 4 2
10 8 6 4 2 1
10 8 6 4 2 0
-10 -8 -6 -4 -2
Which of following is an iteration instruction?
for
rt ()
Predict the output?s= 0for i in range (1,6):s= s+iprint s
4
5
15
21
What is the output of the following code:s= 0for i in range (1, 6):s= s+iprint i
10
6