ENEMY SHOOTING NON STOP

which code can i use to make enemy shoot at the player non stop and when the bullet catches the player the health decreases
any kind of help i appreciate - pygame

shoot and kill pygm

hello everyone iam kinda new with pygame. I wanted to create a one mans game which is similar to shoot and killl. i was able to move around my play but the issue is that whenever i press the K_space nothing is coming out and also i would like when the bullet collide health shows up and when the enemy reaches the player game over to be displayed.