what is wrong in this script?

i’m new to this form and also new blender . i have just started learning scripting . python interpreter gives me an error on line 13 but i don’t know why this is script :

import bpy

Creates a menu for global 3D View

class customMenu1(bpy.types.Menu):
bl_label = “Custom Menu1”
bl_idname = “view3D.custom_menu1”

# Set the menu operators and draw functions
def draw(self, context):
    layout = self.layout
    layout.operator("bject.delete") 

def register():
bpy.utils.register_class(customMenu1)
bpy.ops.wm.call_menu(name=customMenu1.bl_idname)

def unregister():
bpy.utils.unregister_class(customMenu1)

if name == “main”:
register()


import bpy


# Creates a menu for global 3D View
class customMenu1(bpy.types.Menu):
    bl_label = "Custom Menu1"
    bl_idname = "view3D.custom_menu1"


# Set the menu operators and draw functions
    def draw(self, context):
        layout = self.layout
        layout.operator("object.delete") 


def register():
    bpy.utils.register_class(customMenu1)
    bpy.ops.wm.call_menu(name=customMenu1.bl_idname)


def unregister():
    bpy.utils.unregister_class(customMenu1)


if __name__ == "__main__":
    register()

Appears to be a typo. bject.delete should be object.delete.

In your future posts, try wrapping code tags around script so the indentation formats properly. Code tags are in the ‘go advanced’ post editor or you can type them manually.

bl_idname = “view3D.custom_menu1”

make that all lowercase!

view3d.custom_menu1