- python was conceived in 1980 by Guido van Rossum. #version history python 1.0-- 1994 python 2.0--2000 python 3.0--2008 #latest version python 3.10.6--2 August 2022 #Name python python developers aim for it to be fun to use the name python is tribute to the British comedy show monty python
#-----------------SUPERMARKET MANAGEMENT SYSTEM-------------------- items = [] while True : print( '------------------Welcome to the supermarket------------------' ) print( '1. View items\n2. Add items for sale\n3. Purchase items\n4. Search items \n5. Edit items\n6. Exit' ) choice = int(input( 'Enter the number of your choice : ' )) if choice == 1 : print( '------------------View Items------------------' ) print( 'The number of items in the inventory are : %d ' %len(items)) if len(items) != 0 : print( 'Here are all the items available in the supermarket.' ) for item in items: for key, value in item.items(): print( "%s : %s " %(key, v...
Comments
Post a Comment