If I have a loop that depends on two variables, for example: while x is higher than 0 and y is higher than 0: do some stuff. but when x is equal or lower than 0 and y is still higher than 0, do stuff_X; and when x is still higher than 0 but y goes equal or lower than 0, do stuff_Y.
How can I write that in python language? I don't know how to use "or" and "and" in python, so I think they can be useful. I tried with "while" but I don't know how to end it.
while x > 0 (and?) y > 0: some stuff here if x <= 0: stuff_X if y <= 0: stuff_Y