A lot of the sample programs out there have this type of code for getting an input:
W = [int(_) for _ in input().split()]
Can someone please explain what is going on in that statement? I can't make sense of it as a whole, but I know what the functions are doing individually.