E Commerce Product Stock Checker Project 6

 E Commerce Product Stock Checker :

welcome to the product stock checker project. 


You need to write python code. this program will ask users to input the number of available product units. Based on their input, it will then show a message about product availability.

code:

product_units = int(input("Enter number of product units available "))

if product_units >= 5:

    print("Available")

elif product_units > 0 and product_units < 5:

    print("Last few left ")

elif product_units == 0:

    print("Out of Stock")

Output :

Enter number of product units available 0

Out of Stock


  • You have to must try in your python compiler use idle avoid online compilers to Errors

Post a Comment

0 Comments