Computer Science, asked by foziya29268a, 2 months ago

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

Answers

Answered by anindyaadhikari13
4

Required Answer:-

Correct Question:

Write the output of the given co‎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 9 since the last value is excluded which is 10. As the third optional 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 printing, a new line is displayed.
Similar questions