The assignment operator (=) is used to assign variables.
x = 5
print(x)  # Prints 5==) is used to compare values.
if x == 5:
    print("The value of x is 5")The assignment operator (=) is used to assign variables.
x = 5
print(x)  # Prints 5==) is used to compare values.
if x == 5:
    print("The value of x is 5")