python calculate discount based on day and amount

 day=input("Enter day:")

amount=int(input("Enter amount:"))


if day.lower()=="sunday" and amount>=5000:

    discount=(amount*10)/100

    amount=amount-discount

    print("You total amount after 10% discount is", amount)

else:

    print("You total amount is", amount)

Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment