Prim Algorithm Code In Python For Creating