0
How can we write table of 5 in python code
2 Answers
0
A simple code would be-
for x in range (0,51,5):
print(x)
This uses a for loop with increment.
Hope it helps!
0
# to print table of 5 with full expression:
for n in range(1,11):
print("5 x", n, "=", 5*n)