Posts

Showing posts with the label python project

Write a python program script to print all the keywords

  #  Write a python script to print all the keywords import keyword print(keyword.kwlist)

(python )calculator using match case in python switch the particular value between different cases :

  #calculator using match case # it switch the particular value between different cases : # index: print( "1= Addition" ) print( "2= Subtractin" ) print( "3= multiplication" ) print( "4= division" ) # user choice: choice=int(input( "Enter your choice:" )) # match case match choice:     case 1 :         print( "Enter two number:" )         a,b=int(input()),int(input())         c=a+b         print( "sum is:" ,c)             case 2 :         print( "Enter two number:" )         a,b=int(input()),int(input())         c=a-b         print( "subtraction is:" ,c)                     case 3 :         print( "Enter two number:" )         a,b=int(input()),int(input())         c=a*b ...

Supermarket App using python- ( Python Project)

#-----------------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...