NEED EXPLANATION FOR THE CODE

Scenario based questions

while num != 0:
    num = int(input("Enter a number: "))
print("Done")

Explain the code given above.

Basically it is a conditional loop that would keep on running until the user inputs a number other than one after “Done” would be printed!

if number is not 0 the while loop will run