Quote:
e = ['6']['12']
That's not valid
Python
syntax.
Quote:
yes i got a output like that the whole program is
a = int(input())
b = int(input())
c = int(input())
for i in range(a, b+1):
if i%c==0:
d = str(i)
e = d.split()
print(e,end=" ")
So it is just the
output of a
Python
program.
Try
a = int(input())
b = int(input())
c = int(input())
l = []
for i in range(a, b+1):
if i%c==0:
l.append(str(i))
print(l)