-1

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

1 Answer 1

1

Change all .lower to .lower().

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.