1.

For i in range (5,10) : print ( i*5)Write it's output​

Answer»

Required Answer:-

CORRECT Question:

WRITE the OUTPUT of the GIVEN c∅de in Python,

for i in range(5,10):

print(i*5)

Output:

25

30

35

40

45

Explanation:

  • The above loop iterates in the range i = 5 to (10 - 1) [One value less than the given value. ] As the third parameter is not given, it will automatically be considered as 1.

  • So, it prints 5 times the value of i in range 5 to 9 i.e, 25 to 45. After displaying the result, a new line is displayed.


Discussion

No Comment Found