In Java, it is possible to write code like this:
int number = 1;
while((number++)<10){
System.out.println(number);
}
I tried doing the same in Python, but got a syntax error. Is there any similar feature in Python where the value of a variable can be modified within a conditional expression?