Creating a basic pong game with pygame: This basic pong gamewill only move a ball back and forth when you press the right andleft arrow keys. Once the ball touches the rectangles, it turnsthem purple.
Optional: Make at least three modifications to the code. Someideas are below: You can modify the code to allow the ball to moveup and down. Add another key stroke to do something (turn the balla different color, or change direction). Key codes are here:https://www.pygame.org/docs/ref/key.html (Links to an externalsite.)Links to an external site. Change the ball’s color. Changethe color of the rectangles. Add your name to the
PayPal Gateway not configured
PayPal Gateway not configured