I started to program a few days ago and today I've tried to do the game 'Pong' using Python.
But since I am a beginner I can't find what is wrong with the code.
When I try to create a turtle.Turtle, the Pycharm says the code is unreachable.
# Game Pong import turtle wn = turtle.Screen() wn.title("Quarentena 21/03") wn.setup(width=800, height=600) wn.bgcolor("black") wn.tracer(0) # Main Game Loop while True: wn.update() # Paddle A paddle_a = turtle.Turtle() paddle_a.shape("square") paddle_a.speed(0) paddle_a.color('green') paddle_a.penup()
paddle_acode is unreachable, once your program gets to thewhile Trueit'll never go past that because it'll always be looping therewhileloop to get to the code below?