I have the variable assignment in order to return the assigned value and compare that to an empty string, directly in the while loop.
Here is how I\'m doing it in PH
names = [] for name in iter(lambda: raw_input("Name: "), ''): names.append(name)