RetrebutionMk2
RetrebutionMk2

Reputation: 1

Python print statement problem. Print function not working

When I try this code, the print doesn't happen even if I input yes for every prompt. Why not?

import sys, os, time

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()

Upvotes: -1

Views: 32

Answers (1)

md2perpe
md2perpe

Reputation: 3061

Change all .lower to .lower().

Upvotes: 1

Related Questions