'Python print statement problem. Print function not working

I am working on a percentage calculator that does everything like it counts profit, loss, profit percent, loss percent on given circumstances.


CP = input("Is Cost Price given?\n").lower
SP = input("Is Selling Price given?\n").lower
PROFIT = input("Is Profit in amoung given?\n").lower
LOSS = input("Is Loss in amount given?\n").lower
PROFIT_PERCENT = input("Is Profit in percentage given?\n").lower
LOSS_PERCENT = input("Is Loss in percent given?\n").lower

if CP == SP == PROFIT == LOSS == PROFIT_PERCENT == LOSS_PERCENT == "yes":
    print("Everything is given man.")
time.sleep(3)
exit()

Here it asks for multiple things. Now I wanted to code that if all the values are given yes then it prints there is no need. But there is a problem. The print statement is not displayed. The code works fine there are no errors even but the print statement doesnt appear at all.



Solution 1:[1]

Change all .lower to .lower().

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 md2perpe