New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to print first five multiples of a number
3 Answers
+ 3
for i in range(1,6):
print(num*i)
+ 2
Seb TheS multiples!
+ 1
num = 2
print(str(num) * 5)
result:
22222
num = 3
print((str(num) + " ") * 5)
result:
3 3 3 3 3