Fix the code
Spotting and fixing small bugs is half of real programming. Four snippets, four mistakes.
Python happily adds a str to a str, but never a str to an int — you must convert first. Inside a condition you compare with `==`, not the assignment `=`. And parentheses decide what happens first.