in Java, this is valid. multiple assignments in a single statement.
while ((sCurrentLine = br.readLine()) != null) {
System.out.println(sCurrentLine);
}
Is there a similar thing thing in python. I tried but I get the following error.
>>> file = open("reverse.py")
>>> while(x=file.readline()!=""):
File "<stdin>", line 1
while(x=file.readline()!=""):
^
SyntaxError: invalid syntax