I’m new to python, and I’m trying to use a time in a while statement.
while hours_left is greater than 0:00
{
do some stuff
decrement hours_left
}
is what I’m trying to achieve.
however I can’t just say hours_left > 0 because it’s an int.
any ideas how I can type 0:00 as datetime?
Thanks!
You want a
timedeltaobject.