+ 2
How to increment by for loop
like: page1, page2 ....
5 Answers
+ 8
iman rea try this:
for i in range(1, 10):
print("page" + str(i))
+ 6
Are "page1, page2, ..." objects/variables? If so, you can put them in a list and iterate over the list, like this:
pages = [page1, page2, ...]
for page in pages:
# do something with the page
+ 3
num = 1
for i in range(1, 10):
print("page " + str(num))
num = num + 1
+ 2
Can't concatenate str and int!!!
+ 2
got it... thanks a lot đđ