While doing a question of printing table I faced a problem which I wasn't able to understand...
please explain:
x=input('enter a number btw 1-12')
if(not x.isdigit() and x>13 and x<0):
print("value should be btw 1 to 12")
else:
y=range(1,11)
for i in y:
print(x*i)**
result-(when x=2)
2
22
222
2222
22222
222222
2222222
22222222
222222222
2222222222
I don't know why I am getting a series instead of
2
4
6
8
10
12
.
.
.
.
20