Welcome to Westonci.ca, the place where your questions are answered by a community of knowledgeable contributors. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

Write a program named CheckCredit that prompts users to enter a purchase price for an item.

If the value entered is greater than a credit limit of $8,000, display You have exceeded the credit limit; otherwise, display Approved.


Sagot :

THIS IS FOR PYTHON

price = float(input('Price: '))

if price > 8000:

   print('You have exceeded the credit limit')

else:

   print('Approved')