I just duplicated a part of a mesh but as I select one of them, both are being selected. I learned about the 'P' hotkey, however, it's not working in my case. I'm using the latest version of Blender. I used the 'P' button for the selection menu but it's not working. Please tell me another way to do it
You need to go to edit mode for separate by 'P' to work. If you just want to separate the top portion in your screenshot, go to edit mode, select those vertices that you want to separate, press P and choose 'Selection'