I want this python code comes out from loop when I enter 0 as input number of "num" variable But it continues printing these three lines constantly
Thanks
num = 10     #10 is dummy number for starting loop 
while(num!=0):
    print("1)Test func1")
    print("2)Test func2")
    print("0)Exit")
    num = input("Enter a number:")
print("Comes out from while loop!")
 
     
     
    