I know the similar question has been asked before and I looked through a lot of previous questions but couldn't find the answer hence I am posting it.
I have a basic question about for loop. I have been using VBA for a long time and recently have to learn Python for work. I will need to use FOR LOOP in the middle of the code and looks like there in no NEXT following the FOR in python. For example, this is what the code looks like in VBA:
sub test()
dim i as integer
dim j as integer
for I = 1 to 10
j = j+i
Next
.
Print(j)
.
.
'rest of the code
end
Can someone please tell me how to define the FOR LOOP in the middle of the code? Thanks