I have to change pseudo code to python 2x please help me convert my pseudo code : Over Produced Management System

Add memory library module

Prompt; 1)search for item, 2)add over produced item

If search for item
Prompt input item number

    If item number in database print available quantity

    Else print “None available”

Else if add over produced item
Prompt input item number
    If item number in database
    Prompt “how many”
    Add quantity to inventory
    Else if item number not in inventory
    Add item to inventory with quantity