50-a=10
B=15
for i in range (a, b, 2)
print (a*i)
what will be the output of this?
A. 100, 120, 140
B. 100, 110, 140
C. 100, 111, 112
D. None of these
Answers
Answered by
2
The provided code is incorrect. If it's corrected the output will be 100, 120, 140
Corrected code:
a, b = 10, 15
nums = []
for i in range(a, b, 2):
nums = [*nums, str(a * i)]
print(", ".join(nums))
Similar questions
English,
2 months ago
English,
5 months ago
Hindi,
5 months ago
Social Sciences,
11 months ago
English,
11 months ago