Write a Python function to add two given numbers without using the '+' operator.
def add(num1, num2): 
    while num2 != 0: 
        carry = num1 & num2 
        num1 = num1 ^ num2 
        num2 = carry << 1
    return num1