In some locations, you are using the equality check operator (==) where it seems more appropriate to be using the assignment operator (=). As an example: yearlyPay == weeklyPay * 52
This line will see if the thing on the left is the same as the thing on the right and then ignore whatever the answer is. I’m assuming you meant to change the thing on the left instead.
The first line in the program sets yearlyPay to zero. If you didn’t have that line, you would have seen a nice error message from the other locations that yearlyPay was unassigned. The first line seems to be unused. I would remove it.
The red lines start if I remove the first line. Also the code still doesn`t work even if I keep it. If you have Pycharm can you copy and paste it to see what the problem might be?
it would be far easier to read your code, if you would use the “</>” (“preformatted text”) button at the top of the editor (select code and then press said button).