for i in range (5,10) : print ( i*5)
Write it's output
Answers
Answered by
4
Required Answer:-
Correct Question:
Write the output of the given code 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
Physics,
1 month ago
Science,
1 month ago
Hindi,
1 month ago
India Languages,
3 months ago
Computer Science,
3 months ago
Science,
9 months ago
Geography,
9 months ago