In each iteration, multiply 2 by the current number.( p = n*i)
Print p
Solution:
n = 2
# stop: 11 (because range never include stop number in result)
# run loop 10 times
for i in range(1, 11, 1):
# 2 *i (current number)
product = n * i
print(product)
Hint:
n =2
for
loop to iterate the first 10 numbersp = n*i
)p
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer