Java for-loop of initialization in python's

Viewed 36

What is the syntax of Java below in python?

int n = 50;
for(int i = 0, j = n / 2; i < n; i++) {
  for(int k = i; j < n; j++) {
     //do something...
     i = j;
  }
}
0 Answers
Related